You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by sunil menda <su...@yahoo.com> on 2009/10/29 13:27:57 UTC

Break Lock allowed by other users.

Dear Sir,

I use Tortoise SVN.

I find break lock is allowed by users who haven't locked the file.  Eg- User A Locked, User B is allowed to Break Lock.
Please tell me how to prevent this.

Thanks in advance for your quick response.

Regards
Sunil.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2412614

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Break Lock allowed by other users.

Posted by Nick Stolwijk <ni...@gmail.com>.
That is the default configuration of Subversion. For an explanation and a
way of enforcing locks see the documentation[1].

[1]
http://svnbook.red-bean.com/en/1.5/svn.advanced.locking.html#svn.advanced.locking.break-steal

Hth,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl


On Thu, Oct 29, 2009 at 2:27 PM, sunil menda <su...@yahoo.com> wrote:

> Dear Sir,
>
> I use Tortoise SVN.
>
> I find break lock is allowed by users who haven't locked the file.  Eg-
> User A Locked, User B is allowed to Break Lock.
> Please tell me how to prevent this.
>
> Thanks in advance for your quick response.
>
> Regards
> Sunil.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2412625

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Break Lock allowed by other users.

Posted by Nick Stolwijk <ni...@gmail.com>.
If you take a look in the hooks directory of your repository there are two
files, pre-lock.tmpl and pre-unlock.tmpl. These default scripts do exactly
what you want. If you are on a *nix server, you can simply rename these to
pre-lock.sh and pre-unlock.sh and make them executable (chmod +x). If you
are on a windows machine, you will have to rewrite the syntax to match dos
commands.

ps. Mails from the subversion list does not automatically answer to the
list, so please include the mailinglist also. (As you can see, I made the
same mistake twice already. ;) )

Hth,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl


On Thu, Oct 29, 2009 at 4:08 PM, sunil menda <su...@yahoo.com> wrote:

> Hi Nick,
>
> Thanks Nick for your quick response.  Last few hours i spent looking for
> how to change the default configuration on given link such that break lock
> is not allowed in my respository.  But could not find this.  Can I request
> you to please point me out to how to make break lock impossible since i am
> new to SVN and Tortoise SVN.
>
> Thanks very much in anticipation of a quick response one more time :)
>
> Regards
> Sunil.
>
>  ------------------------------
> *From:* Nick Stolwijk <ni...@gmail.com>
> *To:* sunil menda <su...@yahoo.com>
> *Sent:* Thu, October 29, 2009 7:10:25 PM
> *Subject:* Re: Break Lock allowed by other users.
>
> That is the default configuration of Subversion. For an explanation and a
> way of enforcing locks see the documentation[1].
>
> [1]
> http://svnbook.red-bean.com/en/1.5/svn.advanced.locking.html#svn.advanced.locking.break-steal
>
> Hth,
>
> Nick Stolwijk
> ~Java Developer~
>
> IPROFS BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> http://www.iprofs.nl
>
>
> On Thu, Oct 29, 2009 at 2:27 PM, sunil menda <su...@yahoo.com> wrote:
>
>>  Dear Sir,
>>
>> I use Tortoise SVN.
>>
>> I find break lock is allowed by users who haven't locked the file.  Eg-
>> User A Locked, User B is allowed to Break Lock.
>> Please tell me how to prevent this.
>>
>> Thanks in advance for your quick response.
>>
>> Regards
>> Sunil.
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam? Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
>>
>
>
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2412688

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].