Finding Changed files in a ClearCase folder

MikeTWebb picture MikeTWebb · Aug 6, 2010 · Viewed 7.8k times · Source

I have a Folder in ClearCase that contains a large list of Reports.
I have checked all the Reports out because I need to make a sweeping change.
I have changed a set of the Reports and now want to deploy this set.

I probably should have checked the Report files out one at a time and then deployed each as I finished.
But, since I did not do that, is there a way to inspect the ClearCase folder that contains the List of checked out Reports to see which ones have changed and which ones have not?

Answer

VonC picture VonC · Aug 6, 2010

You could ask cleartool for a diff with the previous version:

 cleartool lsco -r -cvi -fmt "diff -options \"-hea\" -pred \"%n\"\n" | cleartool | grep ">>>"

That would give you the list of currently checked-out modified files.

Note: remove the '-r' option if you only want the check-out files of the current directory (and not its sub-directories)