问题
Is it possible to obtain the version-extended pathname of an element that belongs to a baseline?
For example, if I have a file name /vobs/myproj/mydir/myfile.txt
and a baseline bl_rc11
in a UCM project, is there a cleartool
subcommand that will retun the version-extended pathname of /vobs/myproj/mydir/myfile.txt
that belongs to bl_rc11
?
回答1:
This should print the extended pathname of any myfile.txt
with the right baseline
cleartool find . -name 'myfile.txt' -version 'lbtype_sub(bl_rc11)' –print
But that supposes that:
bl_rc11
is a full baseline (see "What is the difference between Full baseline and Incremental baseline in Clearcase UCM?")bl_rc11
is the ID of the baseline, not just its name (its ID could actually bebl_rc11.xxxx
)
Another way would be to use cleartool diffbl:
cleartool diffbl -pred -ver bl_rc11@\aPVob
But that will only list the delta between bl_rc11
and its previous baseline, so even an incremental baseline would still generate a label on the version, meaning the cleartool find still works.
来源:https://stackoverflow.com/questions/12586141/clearcase-version-extended-pathname-in-a-baseline