I would like to know if they are a specific command for ClearCase which can give me a list of specific sub-branches.
For example I have this branches:
/main/version_1
/main/version_2
/test
I would like the command to output for example the “main” sub-branches:
version_1
version_2
Considering ClearCase reasons file by file, you cannot infer a strict relationship between one branch and another based on the version tree of a given file:
version_1andversion_2might be considered “under” main forfile1, but forfile2, maybeversion_2has been created from a version offile2done inversion_1branch.For a given file (in base ClearCase), the command to consider is:
cleartool lsvtree.The situation is a bit different with UCM, where you can list sub-streams, and infer the list of branches from there. See
cleartool lsstream.