I know one awkward solution for this taks will be :
- first use
ct lsto get the entire version info of the file - and pipe the version info to a parsing script to actually get the labels of the file .
But I guess ClearCase should have a “build in” solution for this task without support from any external scripts.
Please help me if you happen to know a “build in” solution for the task.
Thanks in advance.
fmt_ccasecontains all the format-string for various ClearCase elements.For a version of a file, you can:
So the result can be:
In both case, you still need to parse the result, but at least the output can contain only the labels, as in:
onaclov2000 adds (from the comments):
The
lsvtree(graphical version tree) does display the labels of all the versions of the element currently seen by the view when you click “Label Name”That being said, there does not seem to be a “built-in” solution and some parsing is involved:
For instance (which is a bit shorter than the OP version but still based on a
cleartool ls):(GnuWin32 syntax)
or, only with a dynamic view: