Config Spec to display labeled files from 2 branches

北慕城南 提交于 2019-12-04 12:53:16

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

Note the .../branch1/LATEST syntax: you don't need to care from which branch (/main or otherwise) branch1 is coming from.

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

For any given version:

  • you select first Label_2_tv in branch2,
  • if there is no Label_2_tv or branch2, then you try and select Label_1_tv in branch1.
  • if not, as a fallback rule, you select main/LATEST (there always at least one version on branch main)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!