ClearCase视图,仅显示附加在标签上的文件/目录(不是最新的) [英] ClearCase view that ONLY shows files/directories attached to a label (not latest)

查看:59
本文介绍了ClearCase视图,仅显示附加在标签上的文件/目录(不是最新的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用配置规范,例如

 元素* CHECKEDOUT 
元素* MYLABEL
元素* / main / LATEST

自创建 MYLABEL ,我添加了新文件和目录。我希望不要看到新的东西。我放弃了 element * / main / LATEST ,但这无济于事。有什么想法吗?



似乎没有必要诉诸TIME或DATE限定词。

解决方案

您需要更改节规则的顺序,然后结尾为

 元素* MYLABEL 

从唯一规则(元素* MYLABEL)开始,并检查是否看到任何内容。



然后添加 之前,该规则可能不具有该标签的父文件夹(最像vob)的选择规则:

 元素/ vobs / MyVob / main /最新
元素/ vobs / MYVob / ParentFolder / main / LATEST

元素* MYLABEL

只有将mylabel应用于特定路径下的所有元素时,该方法才有效。



必须在 / main / LATEST 规则中选择位于' MYLABEL '上方的每个父文件夹。 br>
如果对 A / B / C / D 下的所有元素都应用了 MYLABEL , / p>


  • A 需要通过 / main / LATEST
  • 选择
  • A / B 需要通过 / main / LATEST
  • 选择
  • A / B / C 需要通过 / main / LATEST



选择您以元素* MYLABEL 结尾。






如果您仅申请 MYLABEL 到特定的子文件夹,并希望确保仅在该子文件夹上看到该标签,您可以这样做:

  element / MyVob / main / LATEST 
元素/ MyVob / projects / main / LATEST
元素/ myVob / projects / subProject1 / ... MYLABEL
元素* / main / LATEST

这样,任何其他subProjectX文件夹都将位于<$ c中$ c> / main / LATEST ,但 subProject1 的内容除外(由于 / ... 三点符号)。


I am using a Config spec such as

element * CHECKEDOUT
element *  MYLABEL
element * /main/LATEST

Since the creation of MYLABEL, I have added new files and directories. I would prefer not to see the new stuff. I left off the "element * /main/LATEST" and that doesn't help. Any ideas?

It doesn't seem like should have to resort to TIME or DATE qualifiers. Shouldn't the label by itself be enough?

解决方案

You need to change the order of the section rules, and ends with:

element * MYLABEL

Starts with the only rule (element * MYLABEL) and check if you see anything.

Then add before that rule the selection rule of the parent folder (most likey the vob) which may not have that label:

element /vobs/MyVob /main/LATEST
element /vobs/MYVob/ParentFolder /main/LATEST

element * MYLABEL

That will only work if mylabel has been applied on all elements under a certain path.

Each parent folder above that 'MYLABEL' must be selected by the /main/LATEST rule.
If MYLABEL has been applied for all elements under A/B/C/D,

  • A needs to be selected by /main/LATEST
  • A/B needs to be selected by /main/LATEST
  • A/B/C needs to be selected by /main/LATEST

Then you end with element * MYLABEL.


If you only apply MYLABEL to a particular subfolder, and would like to be sure to see that label only on that subfolder, you can do:

element /MyVob                            /main/LATEST
element /MyVob/projects                   /main/LATEST
element /myVob/projects/subProject1/...   MYLABEL
element *                                 /main/LATEST

That way, any other subProjectX folder will be in /main/LATEST, except for the content of subProject1 (because of the /... three dots notation).

这篇关于ClearCase视图,仅显示附加在标签上的文件/目录(不是最新的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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