ClearCase Support: How to Lock a Label
Whenever creating a label that you want to permanently keep and prevent other users from modifying the label or deleting any labeled version, then the only option is to lock the label type. This can be easily done using this simple command:
|
cleartool lock lbtype:LABEL_NAME |
|---|
Keep in mind that you have to lock the label type in each VOB that has the label. You can even specify the VOB name without going to the VOB using this command:
|
cleartool lock lbtype:LABEL_NAME@vob:VOB_TAG |
|---|
Furthermore, I recommend immediately locking the label type after creating the label type but before actually labeling any versions. Using this method, no other user can modify your label as your are labeling. To do so, you must lock the label type while specifying a user exception list who the lock does not apply to. Here is any example on how to do this:
|
cleartool lock –nuser USERID1,USERID2,… lbtype:LABEL_NAME |
|---|
The USERID argument should at least include your core id.
by Phil B.
