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

前端 未结 1 1412
北海茫月
北海茫月 2020-12-18 05:46

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 g

相关标签:
1条回答
  • 2020-12-18 06:22

    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
    
    0 讨论(0)
提交回复
热议问题