Can someone to point me to lock a file only on a specific branch in clearcase? Note that i want the same file to be modified in all other branches that other teams working on...
Locking the branches as appropriate might help.But it does not sound like a good idea. Please share your thoughts.
This wouldn't be a simple
clearool lock
, as it would lock the element for all branches.A simple approach would be a
cleartool checkout -reserved
, but that owuld prevent checking on other branches as well.That leaves you with a preop checkout trigger, using the trigger environment variables
CLEARCASE_BRTYPE
:The script will use: