How can I retrieve a file through Label in Config Spec?

雨燕双飞 提交于 2019-12-29 07:04:14

问题


I have labelled a file "Test.java" with a label called "My_Label".
When I try creating a view with the below config specs, I am unable to get the file in Clearcase Explorer.

element * CHECKEDOUT
element * My_Label

Could anyone please tell where am I going wrong in the above config spec?


回答1:


That selection rule alone isn't enough.

You need to add, before that rule, other rules that will select the right version of the parent directories.

In other words, if your parent directory (or one of the ancestors) of Test.java isn't labelled with My_Label, it won't be selected at all.
So your file won't be accessible by your view, even though you have the correct selection rule for you file.

Check if the Vob itself has been labelled with MyLabel.

If not, I would recommend at least to add one final "stop" rule (/main/LATEST: see "ClearCase Branching using configspec" for an illustration of that rule):

element * CHECKEDOUT 
element * My_Label
element * /main/LATEST


来源:https://stackoverflow.com/questions/12528716/how-can-i-retrieve-a-file-through-label-in-config-spec

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