Command to find labels applied on particular branc

2019-02-19 11:33发布

问题:

Command to find labels applied on particular branch..

Suppose i have a branch name called BR_test , i want to know what are all the labels applied on this branch.

回答1:

If this was UCM, a simple lsbl would be enough:

 cleartool lsbl -stream myStream@\mypvob

But if this is base ClearCase, the simple way would be to determine what element (directory or file) is always labeled (typically a root directory), and fetch all the labels on that element for a given branch, through a combination of cleartool find and cleartool describe, based on fmt_ccase format (Windows syntax here):

 C:\mySnapshotView\myVob\myRootDir>
 ct find . -nrec -name "." -ver "brtype(myBranch)" -exec "cleartool descr -fmt "%l" \"%CLEARCASE_XPN%\""

That will list all labels for all versions of that element for a specific branch.



标签: clearcase