在特定分支上清除文件的最新版本 [英] clearcase latest version of a file on a particular branch
问题描述
我知道一个clearcase版本文件的文件名。如何在特定分支上找到此文件的最新版本?它不应选择任何子分支。
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.
谢谢。
推荐答案
如果使用动态视图,则可以使用
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.
您可以执行 cleartool查找
,以查看该文件的完整扩展路径:
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)
您将能够直接 cat
(或Windows中的 type
)直接得到结果(将是 full 扩展路径)
You will be able to cat
(or type
in Windows) directly the result (which will be the full extended path)
cat
或 cleartool find后面的死者
才能使用语法 ... / subbranch / LATEST
。
带有三个点的语法表示:' ... / subbranch
'的任何分支,后跟 / subbranch
。
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
.
这篇关于在特定分支上清除文件的最新版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!