| « Integrating a better file comparer than clearcase offers | What is Project Voldemort? What is Voldemort? » |
Finding which files are on a clearcase branch without a label
January 25th, 2010The clearcase reports that come out of the box only let you find out the files that have changed between 2 labels. What if you haven’t applied the other label yet, or you are writing release notes and the official labelling hasn’t taken place yet?
If you have applied a label, how do you know which files have changed since then.
Open a command line and switch to the view and directory path you are interested in. Issue the following command:
cleartool find . -cview -version “!lbtype(MY_LABEL)” -print
where:
‘.’ is from the current directory,
-cview is current view
-version “!lbtype(MY_LABEL)” is look for versions without a label called MY_LABEL
-print is what to do with them.
2 comments
I guess the command should be ...
cleartool find . -cview -version !“lbtype(MY_LABEL)” -print
However, I suspect you are treating the quotes as brackets which is not correct. The quotes are to help the command line interpreter work out where the parameter boundaries are and have nothing to do with the expression syntax.
Both of the following commands return a list of everything as they check for the presence of the label and not the label:
cleartool find . -cview -version !"lbtype(MY_LABEL) || lbtype(MY_LABEL)" -printcleartool find . -cview -version "!lbtype(MY_LABEL) || lbtype(MY_LABEL)" -printI think you should keep the quotes on the outside to avoid confusion and it also allows you to add additional spaces to clarify the expression:
cleartool find . -cview -version "! (lbtype(MY_LABEL) || lbtype(MY_LABEL))" -print