Re: [cciug] Finding existing Evil Twins?

From: Carl McMullen (cwm@windchill.com)
Date: Wed Jul 18 2001 - 10:38:43 EDT


Dan:

THAT WAS IT!!! Thanks for your help!

Sincerely,

Carl McMullen
Parametric Technology Corp (PTC)
Windchill Integration Team
Arden Hills, MN
cwm@windchill.com

At 09:16 AM 7/18/2001, Dan Rickhoff wrote:

Carl,

To determine if all those OID's are of the directory itself, get the directory's ID.

My guess is that the "ct find" doesn't care that your specifying a directory version different from the "visible" version.  That is, from the point of view of "ct find", you may be over specifying the directory.  "ct find" is probably always using the currently "visible"version of the directory "selected" by your config spec.

Just a guess.  I'm at home, with only my Mac.

If you can specify each directory version ($directoryVersion), why not dispense with the "find" and just do a describe of the element: $directoryVersion/$elementName

Dan
From: "Carl McMullen" <cwm@windchill.com>
Date: Wed, 18 Jul 2001 08:42:31 -0500
To: cciug@rational.com
Subject: [cciug] Finding existing Evil Twins?

All:

Only a couple months ago, we added an Evil Twins trigger and I have this group to thank for that!

However, we have been using ClearCase for over 3 years now and we need to find existing Evil Twin's in ClearCase that were created before we put the ET trigger in place. I've started looking into this and I'm struggling with one small aspect of the solution.

I'm starting with a single directory where I know about a file that has an evil twin, in the directory, on another branch. I am hoping to be able to use the 'cleartool describe -fmt "%On"' command to get the Object ID (OID) of each file, in each directory version and then watch for a file returning a different OID! So, as I'm running through each version of the directory, doing a 'cleartool find ...' for the file in question, each time I get a match, I then try to do a describe of the file I just found (using Perl):

cleartool find $directoryVersion -name $elementName -exec "cleartool describe -fmt "%On" %CLEARCASE_XPN%"

and I am getting back all the same OID's???

[36cbea72.342711d5.9e69.00:c0:4f:60:aa:21]
[36cbea72.342711d5.9e69.00:c0:4f:60:aa:21]
[36cbea72.342711d5.9e69.00:c0:4f:60:aa:21]
[36cbea72.342711d5.9e69.00:c0:4f:60:aa:21]
[36cbea72.342711d5.9e69.00:c0:4f:60:aa:21]
[36cbea72.342711d5.9e69.00:c0:4f:60:aa:21]
[36cbea72.342711d5.9e69.00:c0:4f:60:aa:21]

so I'm beginning to think these are the OID's of the directory element itself, where the file was just found, INSTEAD OF the file I am looking for in each directory version.

Do any of you have any suggestions to get me over the hump here?

Thanks in advance!



Carl McMullen
Parametric Technology Corp (PTC)
Windchill Integration Team
Arden Hills, MN
cwm@windchill.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to "unsubscribe cciug" (the subject is ignored).  You can also unsubscribe using the sign-up form at  the ClearCase http://clearcase.rational.com/cciug/mailing_list.html

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "unsubscribe cciug" (the subject is ignored). You http://clearcase.rational.com/cciug/mailing_list.html]



This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 22:03:56 EDT