1

I would like to write a little batch script, which I would use to collect all of the comments of a file on a specific branch. For example, if I have an ABC.cpp file under the myBranch branch and it has already 3 versions, I would like to have the comments from version 1, 2 and 3.

I still couldn't get multiple versions of the same file. I am using the "find" command of cleartool. Maybe it is not possible in a simple cleartool find command, so let me know, if that's so.

Thanks!

newhouse
  • 1,152
  • 1
  • 10
  • 27

1 Answers1

0

If is possible to list the version of a file, either with cleartool find (using the -ver), or with cleartool lshist.

For a specific branch:

cleartool find . -name "ABC.cpp" -ver "{brtype(myBranch)}"

For each file, you can access its content with cleartool get.
See also "In ClearCase, how can I view old version of a file in a static view, from the command line?"

cleartool find . -name "ABC.cpp" -ver "{brtype(myBranch)}" -exec 
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250