Transfer mastership of VOB-database object
ClearCase (cleartool subcommand), MultiSite (multitool subcommand)
NOTE: This command requires a view context.
Transfers the mastership of one or more objects from one VOB replica to another. Only the current replica is affected immediately; other replicas are notified of the mastership transfers through the normal exchange of update packets.
Mastership restricts some of the operations you can perform on an object. Enabling Independent VOB Development: Mastership in the chapter Introduction to MultiSite in the ClearCase MultiSite Manual describes mastership restrictions.
To limit use of this command to a certain set of users, you can create triggers. For more information, see Implementing Project Development Policies in Managing Software Projects with ClearCase.
Mastership Checking: An object's mastership can be changed only at its current mastering replica. Using both -all and -force overrides this restriction, but you must not use the -force option except in special circumstances. (See the description of the -all option.)
Permissions Checking: Restrictions depend on the kind of object:
element | Must be element creator, element owner, VOB owner, root user (UNIX), or member of the ClearCase group (Windows) |
replica | Must be VOB owner, root user (UNIX), or member of the ClearCase group (Windows) |
others | Must be object creator, object owner, VOB owner, root user (UNIX), or member of the ClearCase group (Windows) |
See the permissions reference page in the ClearCase Reference Manual.
For this object: | An error occurs if any of the following objects are locked: |
|---|---|
Element | Element, element type |
Branch | Branch, branch type |
Type object | Type object |
Hyperlink | Hyperlink type |
Baseline | Baseline, VOB, replica, components associated with the baseline |
Component | Component, VOB, replica |
Other Restrictions: You cannot transfer mastership of a branch if the branch is checked out reserved or if it is checked out unreserved without the -nmaster option.
EVENT RECORDS AND COMMENTS. Default: Creates one or more event records, with commenting controlled by the standard ClearCase user profile (default: -nc). See EVENT RECORDS AND COMMENTS in the multitool reference page. To edit a comment, use cleartool chevent.
SPECIFYING THE OBJECTS. Default: None.
replica-name | Name of the replica (displayed with lsreplica) | |
vob-selector | VOB family of the replica; can be omitted if the current working directory is within the VOB. 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) | |
vob-selector | vob:pname-in-vob where 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) |
attribute-type-selector | [attype:]type-name[@vob-selector] | |
branch-type-selector | [brtype:]type-name[@vob-selector] | |
element-type-selector | [eltype:]type-name[@vob-selector] | |
hyperlink-type-selector | [hltype:]type-name[@vob-selector] | |
label-type-selector | [lbtype:]type-name[@vob-selector] | |
hlink-selector | [hlink:]hlink-id[@vob-selector] | |
oid-obj-selector | oid:object-oid[@vob-selector] | |
replica-selector | [replica:]replica-name[@vob-selector] | |
baseline-selector | [baseline:]baseline-name[@vob-selector] | |
component-selector | [component:]component-name[@vob-selector] | |
With -force, chmaster transfers mastership of all objects in the replica specified with old-replica-selector. Also, chmaster associates nonmastered checkouts with the new replica. Use this form of chmaster only when replica old-replica-selector is no longer available (for example, was deleted accidentally). Before entering this command, you must make sure that old-replica-selector masters itself or is mastered by the replica that it last updated. Then, enter the chmaster command at the last-updated replica. You must also send update packets from the last-update replica to all other remaining replicas in the VOB family. For more information, see the rmreplica reference page.
RETURNING MASTERSHIP OF BRANCHES TO DEFAULT STATE. Default: None.
multitool chmaster osaka lbtype:VERSION1.0
Changed mastership of "VERSION1.0" to "osaka"
multitool chmaster evanston list.c@@
Changed mastership of "list.c" to "evanston"
multitool chmaster osaka replica:osaka
Changed mastership of "osaka" to "osaka"
multitool chmaster osaka bar.c@@\main\v3_dev
Changed mastership of branch "\tromba\bar.c@@\main\v3_dev" to "osaka"
multitool chmaster -all paris
Changed mastership of all objects
multitool chmaster -all -long paris
Changed mastership of label type VERSION1.0
Changed mastership of replica osaka
Changed mastership of all objects
At the replica that masters the branch:
multitool describe -fmt "%[master]p\n" brtype:v3_bugfix
boston@\dev
multitool chmaster boston@\dev \dev\acc.c@@\main\v3_bugfix
Changed mastership of branch "\dev\acc.c@@\main\v3_bugfix" to "boston@\dev"
multitool syncreplica -export -fship boston@\dev
...
At the replica that masters the branch type:
multitool syncreplica -import -receive
...
multitool chmaster -default brtype:v3_bugfix
Changed mastership of branch type "v3_bugfix" to "default"
reqmaster, syncreplica (in the ClearCase MultiSite Manual)
|
Feedback on the documentation in this site? We welcome any comments!
Copyright © 1999 by Rational Software Corporation. All rights reserved. |