Search code examples
constraintsbranchclearcase

How do I programmatically change the constraint to a branch in ClearCase?


We have several branches that were set to one per branch and we want to change those to one per element.
I cannot seem to find an example of that command.

I can do it with the windows and xclearcase but that is one at a time and I want to do the whole VOB.


Solution

  • You need to change the branch label type.

    That is actually done with cleartool mkbrtype -replace (ClearCase 7, 8 and 9.x): you are replacing an existing branch type with a new one.

    cleartool mkbrtype -replace -pbranch -c "my branch bis" mybranch@/vobs/myvob
    

    By default only one branch of this type can be created in an element's entire version tree.
    The -pbranch option loosens this constraint.