Tags: find
Finding files that have not been added to ClearCase
November 20th, 2008Clearcase is the best source controller I have ever used; and I have used most of them (free and commercial)!
One thing that I need to do quite often is look for files that have not been placed under source control yet. After a session of checkins I would ask my fellow developers to try and build to make sure I haven’t missed anything - which can be a bit time consuming. Generally, I have missed adding a file. The reason for this is usually that the un-added files do not show on the Find Checkouts view.
Un-added files in Clearcase speak are called View Private files, that is, they are private to your view.
There isn’t a tool which only finds View Private files, but the closest we can get is to View Private, Checked-out and Derived files. Issue the following cleartool command:
cleartool ls -recurse -view_only path\to\dir
or the short version:
cleartool ls -r -vie path\to\dir
You may want to use a command like grep to filter your results.