I am using base ClearCase and have a config spec question. Please consider these two rules (only one of which I would put in my config spec):
1
element /cl5_sw_ste/DCT/*/... /main/0 -mkbranch rel_drop5
2
element /cl5_sw_ste/DCT/... /main/0 -mkbranch rel_drop5
What is the difference between them?
Thanks,
Dave
(From
config specman page)A selection rule is formed as
scope / pattern / version-selector.The difference is in the pattern:
Means the selection rule will apply to all directories under
DCT.You could rewrite it as:
(you don’t need the final
/..., but in both case, DCT itself is not concerned by the version selector/main/0 -mkbranch rel_drop5: that is bad, since any element you add or remove directly underDCTwould make a new version forDCTitself, and it won’t be inrel_drop5)Means the selection rules will apply to
DCTand all the directories underDCT.That is usually what you see when working with branches.