My team has a VOB in clearcase. Suppose my project looks something like this :
Project (Directory)
- Module 1 (Sub-directory)
- Module 2 (Sub-directory)
When I write my config-specs, I want to specify that if a new file is created in Module 1 sub-directory, it goes to Branch branch/LATEST, otherwise, if it is created somewhere else, I would like it to be versioned on main/LATEST.
I am able to specify that any newly created file goes to branch B using the spec:
element * /main/LATEST -mkbranch branch
Is there any way to specify the branching based on where that file is created?
From config_spec
, you can use a path pattern like:
element /my_vob/module1/... .../branch/LATEST
element /my_vob/module1/... /main/LATEST -mkbranch branch
element /my_vob/module1/... /main/0 -mkbranch branch
That supposes module1
is a folder within a vob.
See "ClearCase Config Spec: load only files with specific label from certain directory" as another example.
/...
' means folder and its content (as opposed to '*
' with means only the content, not the folder itself).../branch
' means branch
accessed from any other branch (/main/branch
, /main/anotherbranch/branch
, ...)Note that if module1 or module2 were UCM components, they could be managed in their own stream and would have their own branch.
You project could then have symbolic link to two different UCM views.