Search code examples
recursiondiffclearcase

How to diff all modifications of all checkout files under a directory recursively with Clearcase?


I'm using ClearCase. I checked out several files under a directory, some of files in its sub-directory, some in sub-sub-directory.

What I want is to list the diff of all my modifications on these checked out files under this certain directory recursively.

What I currently do is:

for file in $(cleartool lsco -recurse -me -cview -fmt "%n\n"); do 
    cleartool diff -serial_format -pred $file; 
done

I use a bash for loop, but I perhaps it can be done with a simple ClearCase command.


Solution

  • The OP suggests using the list of checked out files, but there is no way to find the diff in one cleartool command.
    An xargs (used here) might be easier

    cleartool lsco -recurse -me -cview -fmt "%n\n" | xargs -n 1 cleartool diff -serial_format -pred