ClearCase: Version-extended pathname in a baseline

橙三吉。 提交于 2019-12-24 11:08:28

问题


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 be bl_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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!