ClearCase 快照视图:从加载语句中排除一个特定目录?
早上好,
有没有办法从快照的加载语句中仅排除一个特定目录,例如我想加载名为“PM_CT”的整个 vob 除了 \PM_CT\ lost+found 目录
...有没有一种优雅的方法来做到这一点? 我通常如何排除多个加载的 vobs 中的所有 lost+found 目录?
干杯和感谢,
-Jörg
Good morning,
is there any way to exclude only one particular directory from a snapshot's load statement, e.g. I want to load a whole vob named 'PM_CT' except the \PM_CT\lost+found directory
... is there an elegant way to do it? And how would I generally exclude all lost+found directories across multiple loaded vobs?
Cheers and Thanks,
-Jörg
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想对之前发布的答案进行补充:
所述lost+found目录
要排除所有VOB中的lost+found目录,您可以将之前建议的选择规则修改为更通用:
但是,使用“-none”标志会导致 Windows ClearCase 客户端在更新快照视图时列出错误:
它还无法正确卸载任何以前加载的文件夹或文件,因此如果您确实想清除丢失+找到的目录,您可能需要使用新的选择规则重新创建快照视图(或卸载/重新加载 VOB)...
优雅
对于排除任何普通文件夹,“优雅的方式”是专门加载该文件夹的 /main/0 版本:
这将导致该文件夹被加载为空并且不会产生错误。 它还将正确卸载任何加载的文件。 不幸的是,它不适用于lost+found目录,因为它总是被列为版本/main/0。
I would like to make an addition to the previously posted answer:
The lost+found directories
To exclude the lost+found directories across all VOBs you can modify the previously proposed selection rule to be more generic:
However, using the '-none' flag causes the Windows ClearCase client to list errors when updating a snapshot view:
It also does not properly unload any previously loaded folders or files, so you may need to recreate your snapshot view (or unload/reload the VOB) with the new selection rule if you really want to clean out the lost+found directories...
Elegance
For excluding any normal folder, the "elegant way" would be to specifically load the /main/0 version of the folder:
This will cause the folder to be loaded as empty and will not produce an error. It will also properly unload any loaded files. It unfortunately does not work for the lost+found directory, because it is always listed as version /main/0.
“优雅”的方式包括:
-none
”)load /PM_CT
),如果您的视图是快照注意:在配置规范中,始终使用“/”:它更容易,Windows 以及 Unix ClearCase 视图将能够解释它。
注意事项:
-none
”选项可能会导致快照视图失败在交付或变基(UCM 合并)期间:对于此类操作,动态视图会更适合。 这是针对 CC 2003.06 和早期 7.0 的。 我认为它与最新的 CC7.1.0.2 配合得更好。注意:该选择规则也可以用于动态视图,以屏蔽一些您不想看到的目录。
The "elegant" way consists of:
-none
")load /PM_CT
), if your view is a snapshot oneNote: in a config spec, always use "/": it is easier, and Windows as well as Unix ClearCase views will be able to interpret it.
Caveats:
-none
' option can cause a snapshot view to fail during a deliver or rebase (UCM merge): for that kind of operation, a dynamic view would be more suited. That is for CC 2003.06 and early 7.0. I think it works better with the latest CC7.1.0.2Note: that selection rule can also be used for dynamic views, in order to mask some directory you would not want to see.