user2553061
user2553061

Reputation: 49

How to get list of all the versions and labels applied for a particular file in clearcase?

I have a file

"N:\E123_view\ABC\XYZ\data.doc"

I want to get all the versions of the file and all the labels tagged to it.

Upvotes: 1

Views: 935

Answers (1)

VonC
VonC

Reputation: 1323553

One approach, in command line, is to use a version tree: cleartool lsvtree.

cd N:\E123_view\ABC\XYZ
cleartool lsvtree -all data.doc > afile.txt

lists all versions on a branch, not the selected versions only; annotates each version with all of its version labels.

Another approach is to use lshistory combined with fmt_ccase

cleartool lshistory -fmt "%n %l\n" data.doc
  • %n will print the version, as in /main/rel2_bugfix/1
  • %l will print the label (if present).

Upvotes: 1

Related Questions