Create new two branches for development
We have a branch namely "dev". We completed it and want to create two new branches (dev1 and dev2) base on it for development.
- First, label the current source code of the "dev" branch with "DEV_LABEL"
cleartool mklbtype -glob -c "DEV release label" DEV_LABEL
cleartool mklabel -c "DEV release label" -recurse -replace DEV_LABEL /opt/my_view/my_vob/my_source_code
-Create two new branches
cd /opt/my_view/my_vob
cleartool mkbrtype -c "dev1 branch" dev1
cleartool mkbrtype -c "dev2 branch" dev2
- The new branches will use these config specs:
element * CHECKEDOUT
element * /dev1/LATEST
element * DEV_LABEL -mkbranch dev1
element * /main/LATEST -mkbranch dev1
element * /main/0 -mkbranch dev1
element * /main/LATEST
element * CHECKEDOUT
element * /dev2/LATEST
element * DEV_LABEL -mkbranch dev2
element * /main/LATEST -mkbranch dev2
element * /main/0 -mkbranch dev2
element * /main/LATEST