Phil for Humanity Phil for Humanity
A Guide for the Survival of Humankind and Helping the World, Society, and Yourself.



ClearCase Support: Finding Labeled Versions


I am often asked how to find all the versions that have a certain label attached to it. The command is something like this:

cleartool find . -all -ver 'lbtype(LABEL_NAME)' -print

This command will start recursively searching in the current directory or ".", but this can be changed to a specific VOB or directory like this example:

$ cleartool find /vob/test/a/ -all -ver 'lbtype(TEST_LABEL)' -print
/vob/test/a@@/main/5
/vob/test/a/b.txt@@/main/1
/vob/test/a/c@@/main/2
/vob/test/a/c/d.txt@@/main/1
/vob/test/a/e.txt@@/main/3


by Phil for Humanity
on 20070716

Related Articles
 » ClearCase Support: Finding Branches on Version Trees
 » ClearCase Support: Displaying Comments
 » ClearCase Support: ClearCase's Graphical User Interfaces