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

Re: Re: Get exclusive lock

From: Bráulio Marques Horta <brauliomhorta_at_gmail.com>
Date: Thu, 6 Mar 2008 15:19:59 -0300

> Could you let us see your script. I am having basically the same problem and are kinda stuck on the pre-commit hook.

Here it is. I made two versions. One that check for svn:needs-lock
before denying and other that don't check (i.e. force every committed
file to be locked before). I made it using perl and it is called from
my pre-commit.bat.

i had to rename pre-commit.bat to pre-commit.bat$, so if your want to
use it, rename it back.
Pre-commit.bat is for windows, but i think it won't be hard to
translate it to a posix environment.

It's is a quite simple script and probably don't have bugs but i
didn't used it in a real repository, so be care! ;)

Hope it helps!

Braulio

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org

Received on 2008-03-06 19:20:38 CET

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.