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

Re: I need more information regarding Autolock

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Thu, 12 Jun 2008 16:37:53 -0500

On Jun 12, 2008, at 04:42, Anirban B wrote:

> I am looking for a Autolocking option in Subversion to manage our
> data in form of Graphics,Audio and Video.(Is it possible through
> Hookscript)
> Basically I need a option like-Whenever a user open a file It
> should be locked from the server side.
> No other user can edit/write or can take it from server for edit
> it .Only Read option can be available.

It's not automatic, but the solution is to set the "svn:needs-lock"
property on all files where you want this behavior. Then anyone who
checks out a working copy will notice that all files with this
property are read-only. A user who wants to modify these files will
need to "svn lock" the file, then open it in the editor and make
their changes, then "svn commit" the file. Subversion will ensure
that only one user can "svn lock" a file at a given time. Note
however that locks can be stolen. Read the book for more information
about locking in Subversion.


To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-12 23:38:23 CEST

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.