Creates a new branch in the version tree of an element
ClearCase (cleartool subcommand), Attache (command)
The mkbranch command creates a new branch in the version trees of one or more elements. The new branch is checked out, unless you use the -nco option. In Attache, after the command is executed, any files checked out successfully are downloaded to the workspace.
The checkout command sometimes invokes mkbranch automatically. If the view's version of an element is selected by a config spec rule with a -mkbranch branch-type clause, checkout does the following:
Similarly, entering a mkbranch command explicitly can invoke one or more additional branch-creation operations. See Multiple-Level Auto-Make-Branch in the checkout reference page.
Permissions Checking: For each object processed, you must be one of the following: element group member, element owner, VOB owner, member of the ClearCase group. See the permissions reference page.
Locks: An error occurs if any of the following objects are locked: VOB, element type, branch type, element, pool (nondirectory elements only).
EVENT RECORDS AND COMMENTS. Default: Creates one or more event records, with commenting controlled by your .clearcase_profile file (default: -cqe). See CUSTOMIZING COMMENT HANDLING in the comments reference page. Comments can be edited with chevent.
SUPPRESSING WARNING MESSAGES Default: Warning messages are displayed.
CHECKOUT OF THE NEW BRANCH. Default: The newly created branch is checked out. Additional checkouts may ensue; see the Auto-Make-Branch section.
SPECIFYING THE BRANCH TYPE. Default: None.
type-name | Name of the branch type See the Object Names section in the cleartool reference page for rules about composing names. | |
vob-selector | VOB specifier | |
pname-in-vob | Pathname of the VOB-tag (whether or not the VOB is mounted) or of any file-system object within the VOB (if the VOB is mounted) | |
SPECIFYING THE BRANCH POINTS. Default: None.
|
|
Examples including wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.
In cleartool single-command mode, cmd-context represents the command interpreter prompt. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.
cmd-context mkbrtype -c "bugfixing branch" bugfix
Created branch type "bugfix".
> net use y: \\view\smg_bugfix (ClearCase only)
...
> y:
cmd-context setws smg_bugfix (Attache only)
cmd-context mkbranch -nc bugfix util.h
Created branch "bugfix" from "util.h" version "\main\1".
Checked out "util.h" from version "\main\bugfix\0".
cmd-context mkbranch -nc rel2_bugfix hello.c
Created branch "rel2_bugfix" from "hello.c" version "\main\4".
Checked out "hello.c" from version "\main\rel2_bugfix\0".
cmd-context mkbranch -version \main\1 -nco -nc maintenance util.c
Created branch "maintenance" from "util.c" version "\main\1".
cmd-context mkbranch -nc bugfix hello.c@@\main\3
Created branch "bugfix" from "hello.c" version "\main\3
Checked out "hello.c" from version "\main\bugfix\0".
cmd-context mkbranch -nco -c "release 2 code patches" patch2 *.c
Created branch "patch2" from "cm_add.c" version "\main\1".
Created branch "patch2" from "cm_fill.c" version "\main\3".
Created branch "patch2" from "msg.c" version "\main\2".
Created branch "patch2" from "util.c" version "\main\1".
|
Feedback on the documentation in this site? We welcome any comments!
Copyright © 1999 by Rational Software Corporation. All rights reserved. |