配置规范以显示来自2个分支的标记文件 [英] Config Spec to display labeled files from 2 branches

查看:93
本文介绍了配置规范以显示来自2个分支的标记文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有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_tvbranch2,则尝试在branch1中选择Label_1_tv.
  • 如果没有,作为后备规则,请选择main/LATEST(分支main上始终至少有一个版本)
  • 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)

这篇关于配置规范以显示来自2个分支的标记文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆