You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Anirban B <an...@sqlstar.com> on 2008/06/12 09:42:42 UTC

I need more information regarding Autolock

Hi  All,
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.

Can anybody help me out.
I need the help ASAP

Thanks,


aNIRBAN.B
SQL Star International LTD
Hyderabad,India.
Desk Phone=+914023101600
Hand Phone=+919866059581

Re: I need more information regarding Autolock

Posted by Ryan Schmidt <su...@ryandesign.com>.
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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org