clearcase latest version of a file on a particular branch

百般思念 提交于 2019-11-26 17:14:00

问题


I know the filename of a clearcase versioned file. How can i find the latest version of this file on a particular branch ? It should not pick any child branches. Also the parent branch names may not be know always.

Thanks.


回答1:


If you are using a dynamic view, you can directly access the LATEST version of a given branch by using the extended path:

cat file@@/main/branch/subbranch/LATEST

If you don't know the exact branch path (parent branches) this version is stored in, you can modify your dynamic view and add first the selection rule

element /path/to/file .../subbranch/LATEST

That will select the LATEST version of subbranch within the dynamic view.

Or you can do a cleartool find, in order to see the full extended path for that file:

cleartool find . -name "yourFile" -ver "version(.../subbranch/LATEST)

You will be able to cat (or type in Windows) directly the result (which will be the full extended path)

The diea behind the cat or the cleartool find is to be able to use the syntax .../subbranch/LATEST.
That syntax with the three dots means: '.../subbranch' whatever branches followed by /subbranch.



来源:https://stackoverflow.com/questions/12140611/clearcase-latest-version-of-a-file-on-a-particular-branch

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