How to hide folders except mentioned in config spec?

早过忘川 提交于 2019-12-01 07:48:25

问题


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 /Process/Projects/OurProject\... /main/LATEST
element "/Process/Projects/OurProject 100/..." /main/LATEST
element * /main/LATEST

But it displays all the other folder also , only thing is we are not able to open those folders. Is it possible to hide the all other folders which are not mentioned in config spec ( I know that in snapshot view we can do this by adding load rule, but we wanted it to be done in dynamic view)


回答1:


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



来源:https://stackoverflow.com/questions/11578777/how-to-hide-folders-except-mentioned-in-config-spec

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