我正在使用基本 ClearCase 并且有一个配置规范问题。请考虑以下两条规则(我只会将其中一条放在我的配置规范中):
1
element /cl5_sw_ste/DCT/*/... /main/0 -mkbranch rel_drop5
2
element /cl5_sw_ste/DCT/... /main/0 -mkbranch rel_drop5
它们之间有什么区别?
谢谢,戴夫
我正在使用基本 ClearCase 并且有一个配置规范问题。请考虑以下两条规则(我只会将其中一条放在我的配置规范中):
element /cl5_sw_ste/DCT/*/... /main/0 -mkbranch rel_drop5
element /cl5_sw_ste/DCT/... /main/0 -mkbranch rel_drop5
它们之间有什么区别?
谢谢,戴夫
(来自config spec手册页)
选择规则形成为scope / pattern / version-selector。
不同之处在于模式:
element /cl5_sw_ste/DCT/*/... /main/0 -mkbranch rel_drop5
表示选择规则将适用于DCT.
您可以将其重写为:
element /cl5_sw_ste/DCT/* /main/0 -mkbranch rel_drop5
(你不需要 final /...,但在这两种情况下,版本选择器都不关心 DCT 本身/main/0 -mkbranch rel_drop5:这很糟糕,因为你直接在下面添加或删除的任何元素DCT都会为自己创建一个新版本DCT,它不会在rel_drop5)
element /cl5_sw_ste/DCT/... /main/0 -mkbranch rel_drop5
Means the selection rules will apply to DCT and all the directories under DCT.
That is usually what you see when working with branches.