配置规范以显示来自2个分支的标记文件 [英] Config Spec to display labeled files from 2 branches
问题描述
我有2个分支机构
1)/main/branch1_tv
-<vob>/se/ip/FolderA, folderB
...
2)/main/branch1_tv/branch2_tv
-<vob>/se/ip/FolderC
我已经创建了一个标签[Label_1_tv].我想要做的是拥有一个配置规范,它将以1视图显示所有已标记的文件夹和文件.
I have created a Label [Label_1_tv]. What i want to do is have one config spec that will display all the labled folders and files in it in 1 view.
注:CC 7.1.1. Branch1
不在Main/0
中.
branch 2
不在/main/0
和/branch1/0
中.
我已经从VOB级别标记了branch 1
中的所有元素,并且已经标记了FolderC
及其所有元素.
Notes: CC 7.1.1. Branch1
is off of Main/0
.
branch 2
is off of /main/0
and /branch1/0
.
I have labeled all the elements in branch 1
from the VOB level and FolderC
and all its elements.
我认为这将有助于在一个视图中显示多个位置的元素,并使构建和开发更加容易.
I think this will help by being able to display elements from several locations in 1 view and make building and developing easier.
谢谢您的帮助.
推荐答案
首先,最简单的方法是在动态视图中测试您的配置规范:更改配置规范并(几乎立即)更新内容要快得多动态视图而不是快照视图.
First, the easiest thing is to test your config spec in a dynamic view: it is much quicker to change a config spec and update (almost instantly) the content of a dynamic view as opposed to a snapshot view.
然后,您需要的是一组选择规则,例如(用于查看一个标签):
Then all you need is a set of selection rules like (for seeing one label):
cd m:\view1
cleartool edcs
<edit the config spec with>
element * .../branch1/Label_1_tv
element * /main/LATEST
请注意.../branch1/LATEST
语法:您不必关心branch1
来自哪个分支(/main
或其他分支).
Note the .../branch1/LATEST
syntax: you don't need to care from which branch (/main
or otherwise) branch1
is coming from.
请参见"Branch2可能是有意义的.
See "How a config spec works for more.
"Config spec rules for elements in subbranches" can be of interest for Branch2
.
如果您想同时看到两个标签,则规则的顺序很重要:
If you want to see both labels, the order of the rules is important:
element * .../branch2/Label_2_tv
element * .../branch1/Label_1_tv
element * /main/LATEST
对于任何给定版本:
- 您先选择
branch2
中的Label_2_tv
, - 如果没有
Label_2_tv
或branch2
,则尝试在branch1
中选择Label_1_tv
. - 如果没有,作为后备规则,请选择
main/LATEST
(分支main
上始终至少有一个版本)
- you select first
Label_2_tv
inbranch2
, - if there is no
Label_2_tv
orbranch2
, then you try and selectLabel_1_tv
inbranch1
. - if not, as a fallback rule, you select
main/LATEST
(there always at least one version on branchmain
)
这篇关于配置规范以显示来自2个分支的标记文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!