It's all about the answers!

Ask a question

How to lock a stream or component?

Guowei Jim Hu (1.0k910353) | asked Jan 19 '12, 11:43 a.m.
retagged Oct 06 '17, 4:08 p.m. by Ken Tessier (84117)

It seems that one can only lock files in RTC.

What if one want to lock (prevent write access) to a whole stream or just one component?

Set the ownership to a team area without member?

Accepted answer

permanent link
David Lafreniere (4.8k7) | answered Oct 05 '17, 1:46 p.m.
edited Oct 05 '17, 5:50 p.m.

In RTC 6.0.2 we added a feature that lets you lock streams and components to prevent deliveries to the files in those streams or components. Stream and component locks work in a similar manner to file locks but apply to the entire stream or the entire component in a stream. When a stream or component is locked, any attempted deliveries by users who do not own the lock will fail with an appropriate error message. The user that holds the lock can still perform deliveries to the stream. A lock does not only prevent deliveries, it also prevents any operation that affects the files in the locked component or stream. For example, a component replace is also prevented.

-New & Noteworthy Mention:
-Stream/Component Locking Demo Video:
-SCM Command Line Client 'set lock' command:

Prior to 6.0.2, you could add a deliver advisor in the process spec to restrict deliveries to particular streams. By protecting your stream by particular roles or users, you can effectively lock the stream down.
"" describes how to protect individual components in a stream, the same approach can be used to lock down the entire stream.

Michael Valenta selected this answer as the correct answer

One other answer

permanent link
Geoffrey Clemm (30.1k33035) | answered Jan 24 '12, 2:08 a.m.
edited Oct 05 '17, 1:46 p.m. by David Lafreniere (4.8k7)

You can use process permissions to restrict access to a selected set of
components on a stream. If you want to restrict access to the whole
stream, then the simplest thing is probably to just change the stream
owner to be a project/team area where nobody has deliver permission.


Guowei Jim Hu commented Jan 24 '12, 10:06 a.m. | edited Oct 05 '17, 1:46 p.m.

Thanks, Geoff,
I start to miss ClearCase now, where i can lock branch, stream, vob, .... :)

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.