Instantiating a branch (Windows and Linux and UNIX)
After you have created the branch type objects, you can create branches of that branch type. You do this by running the mkbranch command. The mkbranch command creates a new branch in the version trees of one or more elements. By default, the branch is checked out unless you use the -nco (no checkout) option.
In most cases, branches are created when you check out files or directories. The mkbranch rules in your config spec specify when new branches should be created.
The following examples show the use of the mkbranch command to perform the tasks as explained in the examples.
- mkbranch -nc rel2_bugfix hello.c
This command creates a branch of the type rel2_bugfix off the version of hello.c in the view and checks out the initial version on the branch.
- mkbranch -version \main\1 -nco -nc maintenance util.c
This command creates a branch of the type maintenance off version 1 off the main branch of the file util.c, and does not check out the branch.