[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Read-only files?

From: Gavin Lambert <gavinl_at_compacsort.com>
Date: 2005-12-19 23:03:12 CET

Quoth Bruce Webber <mailto:brucewebber@fastmail.us>:
>> This is true, but if no one else has acquired a lock, there is
>> nothing that prevents me from making the file writable and then
>> committing it. The locking isn't strongly enforced by the system in
>> a way that prevents me from editing the file unless I lock it. The
>> problem arise when I start to edit the file without locking it, and
>> then someone else locks the file before I commit.
>
> I agree. Subversion's locking mechanism is driven from the client
> rather than the server, which allows for the problem you describe.

The precommit hook script is probably the way to go then. I'm sure
you'll be able to get svnlook to tell you whether a user has locked a
file or not.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 20 00:01:56 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.