Changing the protection of a global type

Changing the protection of a global type or a local copy of a global type changes the protection of the global type and all its local copies.

About this task

To change the protection of a global type, use the cleartool protect command. You can enter the command in the context of any VOB in a hierarchy in which the type is defined, even if the VOB does not contain a local copy of the type.

Example

In this example, the owner of the label type LABEL1 is changed to jtg. The describe command shows that the protection change is made to all local copies of the global type.

cleartool protect –chown jtg lbtype:LABEL1@\dev
Changed protection on "LABEL1".
cleartool describe –local lbtype:LABEL1@\re
label type "LABEL1"
...
  owner: jtg
  group: user
  scope: this VOB (local copy of global type)
...

If the protection cannot be changed on one or more of the local copies, the operation fails and the global type’s protection is not changed. This failure leaves the global type and its local copies in inconsistent states. You must fix the problem that prevented the protection from being changed and run the protect command again.