PDA

View Full Version : Searching for moved labels in clearcase ...


Martin
07-20-2003, 04:08 PM
I was wondering if there is a command in clearcase that allows one to
detect lables that have been moved from one version to another. I
don't think moving of labels in among the list of events or activities
captured in clearcase in the history of a file or element; however I
am posting this question if there is any other options or past
experiences by others on this. Thanks.

Martin

Garry Short
07-21-2003, 02:02 AM
Martin wrote:
I was wondering if there is a command in clearcase that allows one to detect lables that have been moved from one version to another. I don't think moving of labels in among the list of events or activities captured in clearcase in the history of a file or element; however I am posting this question if there is any other options or past experiences by others on this. Thanks. Martin

Martin, don't think there is, no. I'm not even sure it's possible, since the
labels don't get stored in the version history of the element. The
information *might* be stored with the label - everything's UCM here, so I
can't check. Best bet would be to phone Rational support and ask them!

Regards,

Garry

Dirk Heinrichs
07-21-2003, 04:15 AM
Martin wrote:
I was wondering if there is a command in clearcase that allows one to detect lables that have been moved from one version to another. I don't think moving of labels in among the list of events or activities captured in clearcase in the history of a file or element;

But it is ;-)

Creating and removing labels are minor events, so you'll have to use "ct lsh
-minor" on every element. A label move results in two events (remove and
make label) and CC is fortunately smart enough to put an additional comment
to each of those events. So you could add "-fmt "%e. %c\n" to the above.

Example: ct lsh -minor -fmt "%e. %c\n" Rats.svi|grep label|grep Moved
remove label "HDR_SL43_TMP2" from version. Moved label "HDR_SL43_TMP2" to
version "/main/hdr_release/90".
make label "HDR_SL43_TMP2" on version. Moved label "HDR_SL43_TMP2" from
version "/main/hdr_release/89".

HTH...

Dirk
--
Dirk Heinrichs | Tel: +49 (0)151 1513 6954
Configuration Manager | Fax: +49 (0)211 47068 111
Cap Gemini Ernst & Young| Mail: dirk.heinrichs@cgey.com
Hambornerstraße 55 | Web: http://www.cgey.com
D-40472 Düsseldorf | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

Marc Girod
07-21-2003, 05:39 AM
>>>>> "GS" == Garry Short <g4rry_sh0rt@zw4llet.com> writes:

GS> Aaahh .. I stand corrected. Shows I'm a UCM admin, I guess :-)

Remember however that minor events get scrubbed, so that this will
only work for recent label moves -- often enough.

--
Marc Girod P.O. Box 323 Voice: +358-71 80 25581
Nokia NBI 00045 NOKIA Group Mobile: +358-50 38 78415
Takomo 1 / 4c27 Finland Fax: +358-71 80 61604

Garry Short
07-21-2003, 05:40 AM
Dirk Heinrichs wrote:
Martin wrote: I was wondering if there is a command in clearcase that allows one to detect lables that have been moved from one version to another. I don't think moving of labels in among the list of events or activities captured in clearcase in the history of a file or element; But it is ;-) Creating and removing labels are minor events, so you'll have to use "ct lsh -minor" on every element. A label move results in two events (remove and make label) and CC is fortunately smart enough to put an additional comment to each of those events. So you could add "-fmt "%e. %c\n" to the above. Example: ct lsh -minor -fmt "%e. %c\n" Rats.svi|grep label|grep Moved remove label "HDR_SL43_TMP2" from version. Moved label "HDR_SL43_TMP2" to version "/main/hdr_release/90". make label "HDR_SL43_TMP2" on version. Moved label "HDR_SL43_TMP2" from version "/main/hdr_release/89". HTH... Dirk

Aaahh .. I stand corrected. Shows I'm a UCM admin, I guess :-)

Garry

Martin
07-21-2003, 05:52 PM
Marc Girod <girod@shire.ntc.nokia.com> wrote in message news:<u0tkbbrvo9ehh.fsf@heitsz02lab.ntc.nokia.com>...>>> "GS" == Garry Short <g4rry_sh0rt@zw4llet.com> writes: GS> Aaahh .. I stand corrected. Shows I'm a UCM admin, I guess :-) Remember however that minor events get scrubbed, so that this will only work for recent label moves -- often enough.

Thanks to everyone for the information provided.

Martin


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service