开发者

Command to find labels applied on particular branch

开发者 https://www.devze.com 2023-03-07 22:31 出处:网络
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 s

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

精彩评论

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