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.
http://svnbook.red-bean.com/en/1.4/svn.advanced.locking.html
---------------------------------------------------------------------
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