ClearCase:基线中版本扩展的路径名
是否可以获取属于基线的元素的版本扩展路径名?
Is it possible to obtain the version-extended pathname of an element that belongs to a baseline?
例如,如果我的文件名是 /vobs/myproj/mydir/myfile.txt
和UCM项目中的基线 bl_rc11
,是否有 cleartool
子命令,它将重新调整属于的
? /vobs/myproj/mydir/myfile.txt
的版本扩展路径名bl_rc11
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
?
这应该打印任何 myfile的扩展路径名。 txt
具有正确的基线
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
但是:
-
bl_rc11
是完整基准(请参阅 完全基准和增量基准之间有什么区别在Clearcase UCM中?) -
bl_rc11
是基线的ID,而不仅仅是其名称(它的ID可以实际上是bl_rc11.xxxx
)
-
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
)
另一种方法是使用 cleartool diffbl
:
Another way would be to use cleartool diffbl
:
cleartool diffbl -pred -ver bl_rc11@\aPVob
但这只会列出 bl_rc11 $之间的增量c $ c>及其上一个的基准,因此即使是递增的基准也仍会在版本上生成标签,这意味着cleartool查找仍然有效。
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.