How to hide folders except mentioned in config spec?

前端 未结 1 586
刺人心
刺人心 2021-01-14 12:06

We are trying to have only few folders in our dynamic view.

For that we have written clearcase config spec like below.

element * CHECKEDOUT
element /         


        
相关标签:
1条回答
  • 2021-01-14 13:11

    Add

    element /Process/Projects/* -none
    

    You must add that rule after the ones selecting the directories that you want:

    element * CHECKEDOUT
    element /Process/Projects/OurProject\... /main/LATEST
    element "/Process/Projects/OurProject 100/..." /main/LATEST
    element /Process/Projects/* -none
    element * /main/LATEST
    

    Note the '*': all the element within Projects will be ignored, but Project itself must be selected by a selection rule.

    If you used:

    element /Process/Projects/... -none
    

    You wouldn't see anything in Project, because Project itself would be ignored, making its content non-visible (and not eligible to the other selection rules of your config spec).

    0 讨论(0)
提交回复
热议问题