Attaches version labels to versions of elements
ClearCase (cleartool subcommand), Attache (command)
The mklabel command attaches a version label to one or more versions. You can attach a label to only one version of a particular element. You can specify the versions themselves on the command line, or you can specify a particular derived object. In the latter case, mklabel labels some or all the versions that were used to build that derived object.
Labeling a version of an element can affect the way the element appears in views. It also provides a new way to access the version with a version-extended pathname.
Version Selection by Views. A typical config spec rule uses version labels to select versions:
element * BASELEVEL_1
If you attach version label BASELEVEL_1 to a version of element foo.c, any view configured with this rule selects the labeled version (unless some rule earlier in the config spec matches another version of foo.c).
Version Labels in Version-Extended Pathnames. Labeling a version effectively adds a new hard link to the version in ClearCase extended namespace. If you attach version label R4.1A to version\main\rls4\12 of element bar.c, these pathnames are equivalent:
bar.c@@\main\rls4\12
bar.c@@\main\rls4\R4.1A
In addition, a third pathname is usually equivalent:
barc@@\R4.1A
This version-extended pathname is valid if it is unambiguous, that is, if no other version of bar.c is currently labeled R4.1A. (This is usually the case because, by default, label types are restricted to being used once per element. See the description of the -pbranch option in the mklbtype 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, element, branch type, branch, label type.
MOVING A VERSION LABEL. Default: An error occurs if a version label of this type is already attached to some other version of the same element.
|
|
EVENT RECORDS AND COMMENTS. Default: Creates one or more event records, with commenting controlled by your .clearcase_profile file (default: -nc). See CUSTOMIZING COMMENT HANDLING in the comments reference page. Comments can be edited with chevent.
SPECIFYING THE LABEL TYPE. Default: None.
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 specifier 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) | |
DIRECTLY SPECIFYING THE VERSIONS TO BE LABELED. The options and arguments in this section specify elements and their versions directly on the command line. Do not use these options and arguments when using a derived object to provide a list of versions.
|
|
USING A DERIVED OBJECT TO SPECIFY THE VERSIONS TO BE LABELED. The options and arguments in this section specify versions by selecting them from the configuration records associated with a particular derived object. Do not use these options when specifying elements and versions directly on the command line.
NOTE: Derived objects are created only in dynamic views.
|
|
Use the following options to modify the list of versions to be labeled.
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 -nc REL6
Created label type "REL6".
cmd-context mklabel -recurse REL6 .
Created label "REL6" on "." version "\main\4".
Created label "REL6" on ".\bin" version "\main\1".
Created label "REL6" on ".\include" version "\main\1".
Created label "REL6" on ".\libs" version "\main\2".
Created label "REL6" on ".\lost+found" version "\main\0".
Created label "REL6" on ".\release" version "\main\1".
Created label "REL6" on ".\src" version "\main\6".
Created label "REL6" on ".\src\Makefile" version "\main\2".
Created label "REL6" on ".\src\cm_add.c" version "\main\1".
Created label "REL6" on ".\src\convolution.c" version "\main\4".
Created label "REL6" on ".\src\edge.sh" version "\main\1".
.
.
.
cmd-context mklabel REL1 msg.c
Created label "REL1" on "msg.c" version "\main\1".
cmd-context mklabel -version \main\rel2_bugfix\3 REL2 util.c
Created label "REL2" on "util.c" version "\main\rel2_bugfix\3".
cmd-context mklabel -replace REL2 hello.c@@\main\4
Moved label "REL2" on "hello.c" from version "\main\3" to "\main\4".
cmd-context mklabel -config hello.obj REL3
Created label "REL3" on "\users_hw\" version "\main\1".
Created label "REL3" on "\users_hw\src" version "\main\2".
Created label "REL3" on "\users_hw\src\hello.c" version "\main\3".
Created label "REL3" on "\users_hw\src\hello.h" version "\main\1".
cmd-context mklabel -config hello.exe -name '*.c' REL5
Created label "REL5" on "\users_hw\src\hello.c" version "\main\3".
Created label "REL5" on "\users_hw\src\util.c" version "\main\1".
cmd-context mklabel -config hello.exe -name '\users_hw\...' REL5
Created label "REL5" on "\users_hw\" version "\main\1".
Created label "REL5" on "\users_hw\src" version "\main\2".
Created label "REL5" on "\users_hw\src\hello.c" version "\main\3".
Created label "REL5" on "\users_hw\src\hello.h" version "\main\1".
Created label "REL5" on "\users_hw\src\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. |