Search for modified files in the ClearCase folder

I have a folder in ClearCase that contains a large list of reports.
I checked all the reports because I need to make a radical change.
I changed the report set and now I want to deploy this set.

I probably should have checked the report files one at a time, and then deploy them as they are completed.
But, since I did not, is there a way to check the ClearCase folder containing the List of Verified Reports to see which ones have been changed and which have not?

+6
file clearcase
source share
4 answers

You can request cleartool for the difference with the previous version:

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

This will give you a list of files with patched versions.

Note. Remove the < -r option if you want only the extract files of the current directory (and not its subdirectories)

+6
source share

In ClearCase (or Explorer, if integration is enabled), right-click on the base of the tree and select "Find Modified Files". This will return a list of ALL files that have been changed and which are part of the repo (i.e. It will not return a list of personal files).

If you want to know all the files — extracted, modified, and closed — the only way I know is to use cleartool from within the view:

 cleartool ls -r 

If you want more (or less) file information, check the docs for the -fmt option (which does not work with ls but works with description), and you can create a command that will give you exactly what you want (this will require some experimentation until you hang it).

NOTE. "Find modified files" is available only , available in gui from the database of the view tree; Elsewhere, your only option is "Find files with verification" (confusing, to say the least).

+3
source share

You can configure a second view with the same configuration specification as a view with extracted files. After installing the second view, you can compare the same directory in each view using the difference tool (for example, WinDiff). All files that have been modified will be listed here.

It is not native to ClearCase, but it should produce the results you are looking for.

+1
source share

I also found a solution. I selected the ClearCase folder and clicked "Find Checkouts". This showed my huge list of report files that have been verified. Then I selected all of them and selected "Check In". I disabled the option "Check if it is identical to the previous version." Then I selected “OK” to register. All registered modem files and unmodified files remained checked. This gave me my delta of modified files and unmodified files.

0
source share

All Articles