Locking or unlocking a global type

Locking or unlocking a global type or one of its local copies locks or unlocks all local copies.

About this task

After a global type has been locked, the describe command does not list local copies as locked, but access checking on local copies checks for a lock on the global type.

Example

For example, the following command locks the global label type REL6 and its local copies:

cleartool lock –c "freeze" lbtype:REL6@\dev
Locked label type "REL6".

Attempts to create new instances of a locked global type fail:

cleartool mklabel –c "last version" REL6 \re\tests.txt
cleartool: Error: Lock on label type "REL6" prevents operation "make
hyperlink".
cleartool: Error: Unable to create label "REL6" on "\re\tests.txt"
version "/main/5".

If you attempt to lock a type in a VOB that does not contain a local copy of the specified type, the global type in the administrative VOB hierarchy is searched.

By default, lslock lists the lock state of the global type. To list the lock state of the local copy, use the –local option.