2

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.

Prathima
  • 111
  • 3

1 Answers1

2

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.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250