It's all about the answers!

Ask a question

SCM resource lock alternative


FREDERIC RIVIERE (21197) | asked Apr 08 '09, 12:53 p.m.
edited Oct 10 '17, 1:18 p.m. by David Lafreniere (4.4k7)

Is there a way to lock binary resources, as in SVN for example. (in my case ODT documents).

I know that Jazz "philosophy" is merge oriented, but practically merging ODT documents is tedious regarding to text merge.

Currently, my solution is to warn guys through chat or mail ...

Do you have other suggestions or experimented solutions ?

Frederic

Accepted answer


permanent link
Geoffrey Clemm (29.4k23035) | answered Apr 08 '09, 1:44 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Oct 10 '17, 1:17 p.m. by David Lafreniere (4.4k7)

In RTC-2.0, there is a "lock" operation that you can apply to a
particular versioned file in the context of a particular stream. This
functionality is available in the 2.0-Beta1 release, so you can start
playing with it now.

The Eclipse UI will then annotate a locked file with a "locked by xxx"
annotation. Also, it will prevent anyone other than the locker from
delivering a change to that file in the specified stream.

Note that this does not prevent the divergence (since a user is not
prevented from modifying the file, or checking in the change), but the
GUI annotation should be more effective than chat or mail.

Cheers,
Geoff

David Lafreniere selected this answer as the correct answer

Comments
David Lafreniere commented Oct 10 '17, 1:18 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

Geoffrey's answer is perfectly acceptable for a question that was pre RTC 2.0.
Also, a feature related to this was delivered in RTC 5.0.2.

See:

Pessimistic Locking:

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

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

Your answer


Register or to post your answer.