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

Re: Break Lock allowed by other users.

From: Nick Stolwijk <nick.stolwijk_at_gmail.com>
Date: Thu, 29 Oct 2009 16:19:23 +0100

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 <sunmenda_at_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 <nick.stolwijk_at_gmail.com>
> *To:* sunil menda <sunmenda_at_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 <sunmenda_at_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_at_subversion.tigris.org].
Received on 2009-10-29 16:20:17 CET

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