1

I know that I can use the diffbl command to compare two baselines. But how can I also ask the command to print out the diffs of all the files that were different?

Is this even possible or do I need to write a script or something? Any pointers?

shikhanshu
  • 1,466
  • 2
  • 16
  • 32

1 Answers1

1

The closest you can get with cleartool alone is cleartool diffbl -ver

For each version, you can make a cleartool diff -dif -pred <aversion> in order to print the actual diff (using the -dif format, where differences are reported in the style of the UNIX and Linux diff utility)

As mentioned in the comments, the diff -pred only prints the diff introduced by a specific version.
The concatenation of all those diffs represents all the modifications introduced by the new baseline compared to the old one.
In other word, that concatenation of diffs represents "print out the diffs of all the files that were different". What was originally asked for.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • diffbl -ver returns a list of versions of elements. There may be more than one version of the same element. So what does the "ct diff -dif -pred " really do? does it print the diff between the two versions of this element from the two baselines? – shikhanshu May 27 '15 at 17:50
  • @shikhanshu no, the diff -pred only print the diff introduced by that specifc version. The concatenation of all those diffs represents all the modifications introduced by the new baseline compared to the old one. In other word, that concatenation of diffs represents "print out the diffs of all the files that were different". What you were asking for. – VonC May 27 '15 at 17:52