ClearCase 快照视图:从加载语句中排除一个特定目录?

发布于 2024-07-30 06:02:07 字数 227 浏览 4 评论 0原文

早上好,

有没有办法从快照的加载语句中仅排除一个特定目录,例如我想加载名为“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

红衣飘飘貌似仙 2024-08-06 06:02:07

我想对之前发布的答案进行补充:

所述lost+found目录

要排除所有VOB中的lost+found目录,您可以将之前建议的选择规则修改为更通用:

#Skip the lost+found directories
element .../lost+found -none

但是,使用“-none”标志会导致 Windows ClearCase 客户端在更新快照视图时列出错误:

无法加载“lost+found”:配置规范中未选择版本。
无法加载“丢失+找到”。

它还无法正确卸载任何以前加载的文件夹或文件,因此如果您确实想清除丢失+找到的目录,您可能需要使用新的选择规则重新创建快照视图(或卸载/重新加载 VOB)...

优雅

对于排除任何普通文件夹,“优雅的方式”是专门加载该文件夹的 /main/0 版本:

#Exclude the contents of a directory
element /VOB_name/folder_path /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:

#Skip the lost+found directories
element .../lost+found -none

However, using the '-none' flag causes the Windows ClearCase client to list errors when updating a snapshot view:

Unable to load "lost+found": no version selected in configuration specification.
Unable to load "lost+found".

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:

#Exclude the contents of a directory
element /VOB_name/folder_path /main/0

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.

究竟谁懂我的在乎 2024-08-06 06:02:07
element /PM_CT/lost+found -none

“优雅”的方式包括:

  • 添加选择规则(此处为“-none”)
  • 加载所有 PM_CT,而不提出任何问题(load /PM_CT),如果您的视图是快照

注意:在配置规范中,始终使用“/”:它更容易,Windows 以及 Unix ClearCase 视图将能够解释它。

注意事项:

  • 之前的解决方案适用于一个 vob,我认为您不能对多个 vob 使用“通配符”,
  • -none”选项可能会导致快照视图失败在交付或变基(UCM 合并)期间:对于此类操作,动态视图会更适合。 这是针对 CC 2003.06 和早期 7.0 的。 我认为它与最新的 CC7.1.0.2 配合得更好。

注意:该选择规则也可以用于动态视图,以屏蔽一些您不想看到的目录。

element /PM_CT/lost+found -none

The "elegant" way consists of:

  • adding a selection rule (here "-none")
  • loading all PM_CT without aking any question (load /PM_CT), if your view is a snapshot one

Note: in a config spec, always use "/": it is easier, and Windows as well as Unix ClearCase views will be able to interpret it.

Caveats:

  • the previous solution is for one vob, I do not think you could use "wildcard" for multiple vobs
  • the '-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.2

Note: that selection rule can also be used for dynamic views, in order to mask some directory you would not want to see.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文