views:

41

answers:

1

how to lock all the streams under integration stream in clearcase in UCM

A: 

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.

VonC