Using ClearCase, how can I lock (or unlock) a directory and its complete content recursively?
(It seems to me that neither the GUI nor cleartool
supports recursive (un)locking, so probably I would have to write a batch file recursing over all the content of a directory. Maybe I overlooked something?)
Since it does not seem possible to use cleartool unlock
recursively, one solution could be to combine it to a cleartool find
command:
# Windows syntax:
cleartool find adirectory -exec "cleartool unlock \"%CLEARCASE_PN%\""
# Unix syntax:
cleartool find adirectory -exec 'cleartool unlock "$CLEARCASE_PN"'
If you execute it in the path where adirectory
is to be unlocked, it will do so for adirectory
and all its content.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments