除了配置规范中提到的以外,如何隐藏文件夹? [英] How to hide folders except mentioned in config spec?

查看:116
本文介绍了除了配置规范中提到的以外,如何隐藏文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们试图在动态视图中只有几个文件夹.

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

为此,我们编写了如下的clearcase配置规范.

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)

推荐答案

添加

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

请注意'*':Projects中的所有元素都将被忽略,但是必须通过选择规则选择Project本身.

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

如果您使用过:

element /Process/Projects/... -none

您不会在Project中看到任何内容,因为Project本身将被忽略,从而使其内容不可见(并且不符合配置规范的其他选择规则)

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

这篇关于除了配置规范中提到的以外,如何隐藏文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆