How to cleanup view private files from my view

Posted on July 14, 2008

The quick way is to just remove the view and re-create it if you want to get rid of all your view-private files/directories/links. If, on the otherhand, you want to keep some of those view-privates, you’ll have to find all the view-private files, which is different depending on if you use dynamic vs. snapshot views. There’s no GUI to help you, you have to go commandline via DOS prompt or unix commandline.

For dynamic views, set the the view or go to the appropriate drive (and view directory), then run:

cleartool lsprivate -other

For snapshot views, cd to the view/VOB, then run:

cleartool ls -recurse -view_only

Then, rather than blindly remove all view-privates (you may as well just remove then create the view), I re-direct the output to a log file, delete the entries for the view-private files I want to keep, then run a shell-script (unix) or perl script (DOS) to delete each entry (directories are handled differently than files)

Popularity: 7% [?]

» Filed Under Clearcase

Comments

Leave a Reply