How to lock all the streams under integration stream in clearcase in UCM?
How can I lock all the streams under integration stream in ClearCa开发者_如何学编程se UCM?
The cleartool lock
operation in UCM is not a recursive operation.
If you only lock the integration stream, it won't lock the substream
You need to list all the streams under an integration stream and lock them individually.
cleartool lsstream -s -in stream:My_Int_Stream@\myPVob -r
combined with gawk, you don't even need to script it:
cleartool lsstream -s -in stream:My_Int_Stream@\myPVob -r | gawk "{print \"cleartool lock -nc stream:\"$1\"@\\myPVob\"}"
Note the restrictions in the man page: you probably need to be the owner of those streams to be able to lock them.
Note also the -r
to make sure you have all the sub-streams, and not the direct child streams of the Integration one.
精彩评论