ClearCase view that ONLY shows files/directories attached to a label (not latest)

让人想犯罪 __ 提交于 2019-12-23 03:22:14

问题


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?


回答1:


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).



来源:https://stackoverflow.com/questions/23228552/clearcase-view-that-only-shows-files-directories-attached-to-a-label-not-latest

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!