如何从ClearCase中的特定分支选择版本? [英] How would you select versions from a specific branch in ClearCase?
问题描述
我建议您使用什么配置规范?
让我们说 prvt
是私人分支:
element * ... / prvt / LATEST
/ p>
如果我只想加载那些只在prvt branch中分支的元素,而不是任何其他元素, / p>
元素/ myVob / myPath / main / LATEST
元素/ myVob / main / LATEST
可能会从myPath目录中的main latest分支出来的文件。
但是这对于目录非常有用,因为我不会在私有分支中分支checked in file元素的目录。
所以如果你的文件在 / myVob / myPath
,配置规范
元素* ... / prvt / LATEST
将选择正确的版本(prvt分支的LATEST中的版本),只有当/ myVob有一个prvt分支如果 myPath
有一个 prvt
,则 分支。
如果前导路径没有 prvt
分支,则不会选择任何版本,表示该路径中的文件将不会有机会由您的选择规则选择。
这是真正的问题。
这就是为什么我建议添加一些停止规则:
元素* ... / prvt / LATEST
元素/ myVob / myPath / main / LATEST
element / myVob / main / LATEST
myVob / myPath ,只显示正确的版本,但是对于这些文件的路径*,你至少有备份配置规范规则,允许你至少选择一个版本。 p>
如果你知道分支从 prvt
分支完成,使用该分支名称会更安全。
如果你不' / main / LATEST
'是一个肯定的赌注,因为 main
总是存在。
I would like to get all the files checked-in a private branch and only the those files checked in.
What config spec would you recommend?
Let's say prvt
is the private branch:
element * .../prvt/LATEST
Would that work?
What if I want to load only those elements which are branched out only in prvt branch not any other element as I suppose
element /myVob/myPath /main/LATEST
element /myVob /main/LATEST
might get files which branch out from the main latest also in myPath directory. But this is very much useful only for directories as I wouldn't have branched out the directories of the checked in file element in the private branch
This will only work if every element has a prvt branch.
So if your files are in /myVob/myPath
, the config spec
element * .../prvt/LATEST
will select the right versions (those in LATEST of prvt branch), only if /myVob has a prvt branch (i.e. has already been checked out / checked in in that branch), and if myPath
has a prvt
branch.
If the leading path has no prvt
branch, no version will be selected, meaning the files within that path won't have a chance to be selected by your selection rule.
That is the real issue here.
That is why I recommend adding some stopping rules:
element * .../prvt/LATEST
element /myVob/myPath /main/LATEST
element /myVob /main/LATEST
That way, within /myVob/myPath
, only the right versions are shown, but for the path *leading** to those files, you have at least backup config spec rules which allows you to at least select one version.
If you know the branch from which prvt
branch has been done, using that branch name would be safer.
If you don't '/main/LATEST
' is a sure bet, since the main
branch always exists.
这篇关于如何从ClearCase中的特定分支选择版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!