开发者

Command to find labels applied on particular branch

Command to find labels applied on particular branch..

Suppose i have a branch name called BR_test , i want to know what are al开发者_Python百科l the labels applied on this branch.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜