It's all about the answers!

Ask a question

Can I stop another developer from changing a file?


Eddie Breeveld (6112530) | asked Jan 10 '14, 11:02 a.m.
edited Oct 10 '17, 1:49 p.m. by David Lafreniere (4.8k7)

In RTC 4.0.4 I can lock a file to prevent other users from editing the same file.  The documentation says that a "A resource that you have locked is displayed as an incoming pending change to other users." Unfortunately the Pending Changes window doesn't show anything for other users after I lock a file.

We can all however see the lock icon in Project Explorer, but a there is nothing to stop others from editing the file or even checking in changes to the file.  Is there a better way of preventing other users from editing a file?

Accepted answer


permanent link
David Lafreniere (4.8k7) | answered Oct 10 '17, 1:49 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

This request has been made possible by the delivery of the 'Pessimistic Locking' feature in RTC 5.0.2.

Note: There are some limitations if editing files outside of the RTC rich clients.


For more information on this feature see:

New & Noteworthy: https://jazz.net/downloads/rational-team-concert/releases/5.0.2?p=news#pessimisticLocking

Video: https://www.youtube.com/watch?v=8pVwY3ByYnQ

Michael Valenta selected this answer as the correct answer

2 other answers



permanent link
Eddie Breeveld (6112530) | answered Jan 14 '14, 7:53 a.m.
edited Oct 10 '17, 1:46 p.m. by David Lafreniere (4.8k7)

No it is not possible (prior to RTC 5.0.2)


Comments
Dr. Hans-Joachim Pross commented Jan 14 '14, 8:11 a.m.
JAZZ DEVELOPER

What is not possible?


Eddie Breeveld commented Jan 14 '14, 8:26 a.m.

Sorry, this is the answer to my question in the title "Can I stop another developer from changing a file?".


permanent link
Dr. Hans-Joachim Pross (1.1k4458) | answered Jan 10 '14, 11:37 a.m.
JAZZ DEVELOPER
edited Oct 10 '17, 1:46 p.m. by David Lafreniere (4.8k7)

What you are looking for is an pessimistic locking which is not available in Team Concert (prior to RTC 5.0.2)

To be correct, a lock does not prevent others from editing but just from delivering the changes to a locked stream.

You might look and vote for that work item...


Comments
Eddie Breeveld commented Jan 14 '14, 7:52 a.m.

Thanks.  I can see the work item, but how do I vote for it?


Dr. Hans-Joachim Pross commented Jan 14 '14, 8:11 a.m.
JAZZ DEVELOPER

You should be able to leave a comment - see at the bottom of the page.


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.