Search code examples
diffclearcasebaseline

Comparing baseline differences including file contents


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?


Solution

  • 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.