Prathima
Prathima

Reputation: 111

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 all the labels applied on this branch.

Upvotes: 2

Views: 1867

Answers (1)

VonC
VonC

Reputation: 1323653

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.

Upvotes: 2

Related Questions