Home Forums
Welcome, Guest
Username Password: Remember me

cleartool find output "changes" with time
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: cleartool find output "changes" with time

cleartool find output "changes" with time 24 Jan 2012 03:40 #102991

  • tekkie
  • OFFLINE
  • Platinum Boarder
  • Process Improvement Specialist
  • Posts: 404
  • Karma: 1
I have a weird situation with a cleartool find command in that it appears to 'change its mind' with time...

I am running the following command:
cleartool find /vobs/gmag_public -all -type d -verion "brtype(main) && ! version(.../main/0)" -print


My changes to folders are performed on my primary Solaris server and the find command is run on a replica Linux server, which is "synced up" every 20 minutes.

When I run:
diff history.20120124[b]092757[/b] history.20120124[b]110704[/b]


I get the following output (NOTE: folder-2-name-2 becomes folder-2-name-1)
187,189c187,189
< /vobs/zzz/xxx/Source/examples/deletes-renames/folder-1@@/main/3/folder-2-name-2@@/main/1
< /vobs/zzz/xxx/Source/examples/deletes-renames/folder-1@@/main/3/folder-2-name-2@@/main/2
< /vobs/zzz/xxx/Source/examples/deletes-renames/folder-1@@/main/3/folder-2-name-2@@/main/3
---
> /vobs/zzz/xxx/Source/examples/deletes-renames/folder-1@@/main/2/folder-2-name-1@@/main/1

> /vobs/zzz/xxx/Source/examples/deletes-renames/folder-1@@/main/2/folder-2-name-1@@/main/2
> /vobs/zzz/xxx/Source/examples/deletes-renames/folder-1@@/main/2/folder-2-name-1@@/main/3


How is this possible?

Re: cleartool find output "changes" with time 01 Feb 2012 03:45 #103009

  • MarcGirod
  • OFFLINE
  • Gold Boarder
  • Posts: 235
  • Karma: -285
tekkie wrote:

cleartool find /vobs/gmag_public -all -type d -verion "brtype(main) && ! version(.../main/0)" -print


Note the typo in 'verion'.

I get the following output (NOTE: folder-2-name-2 becomes folder-2-name-1)
...
How is this possible?


These are hardlinks, aren't they?
The directory was renamed between versions /main/2 and /main/3 of folder-1. In that case, assuming neither version is selected in your view, the name chosen would not matter, and the criterion for choosing one over the other is not defined...

Marc
The following user(s) said Thank You: tekkie

Re: cleartool find output "changes" with time 27 Feb 2012 08:25 #103165

  • tekkie
  • OFFLINE
  • Platinum Boarder
  • Process Improvement Specialist
  • Posts: 404
  • Karma: 1
Sorry for the typo, had some trouble with copy/paste between two machines.

To answer your question these are not hardlinks, however the folder was renamed between version 2 and 3 of 'folder-1'.

How does /main/LATEST affect deleted folders/files? the object is not visible in my view, however the /main/LATEST rule should select the latest no?
  • Page:
  • 1
Time to create page: 0.79 seconds