Creates or updates a label type object
ClearCase (cleartool subcommand), Attache (command)
The mklbtype command creates one or more label types with the specified names for future use within a VOB. After creating a label type in a VOB, you can attach labels of that type to versions of that VOB's elements, using mklabel.
The same version label can be attached to multiple versions of the same element. (The versions must all be on different branches. If two versions were labeled JOHN_TMP on branch \main\bugfix, the version-extended pathname foo.c@@\main\bugfix\JOHN_TMP would be ambiguous.) However, there are drawbacks to using the same version label several times in the same element:
By default, a new label type is constrained to use on only one version in an element's entire version tree. This allows you to omit the branch pathname portion of a version-extended pathname (for example, foo.c@@\JOHN_TMP). The -pbranch option relaxes this constraint, allowing the label type to be used once per branch.
A VOB cannot contain a branch type and a label type with the same name. For this reason, we strongly recommend that you adopt this convention:
Permissions Checking: For each object processed, you must be one of the following: (with -replace only): type 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, label type (with -replace only).
HANDLING OF NAME COLLISIONS. Default: An error occurs if a label type named type-name already exists in the VOB.
|
|
|
|
SPECIFYING THE SCOPE OF THE LABEL TYPE. Default: Creates an ordinary label type that can be used only in the current VOB.
INSTANCE CONSTRAINTS. Default: A label of the new type can be attached to only one version of a given element.
MASTERSHIP OF THE LABEL TYPE. Default: Attempts to attach or remove labels of this type succeed only in the VOB replica that is the current master of the label type. The VOB replica in which the new label type is created becomes its initial master.
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.
NAMING THE LABEL TYPES. Default: The label type is created in the VOB that contains the current working directory unless you specify another VOB with the @vob-selector argument.
type-name | Name of the label type See the Object Names section in the cleartool reference page for rules about composing names. | |
vob-selector | VOB specifierf Specify vob-selector in the form [vob:]pname-in-vob | |
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) | |
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 mklbtype -c "Version label for V2.7.1 sources" V2.7.1
Created label type "V2.7.1".
cmd-context mklbtype -nc -pbranch REL3
Created label type "REL3".
cmd-context mklbtype -replace -pbranch -c "allow use on multiple branches" V2.7.1
Replaced definition of label type "V2.7.1".
describe, lstype, mklabel, rename, rmtype, type_object
|
Feedback on the documentation in this site? We welcome any comments!
Copyright © 1999 by Rational Software Corporation. All rights reserved. |