Auto-Make-Type operations

In general, creating a local instance of a global type creates a local copy of the global type. This action is referred to as an auto-make-type operation.

About this task

Auto-make-type operations occur in the following cases:
  • An operation that creates attributes, branches, elements, hyperlinks, or labels creates a local copy of the global type.
  • A checkout operation that creates a branch (because of an auto-make-branch rule) creates a local copy of the global branch type.
  • An operation that attaches an attribute or a hyperlink to a local copy of a type creates the local copy if it does not already exist.

If the global type has supertypes, the auto-make-type operation creates local copies of the supertypes and then fires any type-creation triggers associated with them. It also sets the permissions and ownership of the local copy to match those of the global type.

Example

The following example shows the creation of an instance of a global label type. The output of the command includes the VOB tag of the administrative VOB.

cleartool mklabel –c "Release 6" REL6 \dev\file.c
Automatically created label type "REL6" from global definition in VOB "\admin".
Created label "REL6" on "\dev\file.c" version "/main/rel6_main/31".

Note: When you create a trigger type and specify a global type as an argument to a built-in action (the arguments –mklabel, –mkattr, and so on), a local copy of the global type is not created, because built-in actions cannot cause cascading triggers. Therefore, if you attempt to create such a trigger in a VOB that does not contain a local copy of the global type, the mktrtype command fails.