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

Re: Locks on the repository - Further information

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2006-07-31 10:38:17 CEST

On 7/31/06, André Pönitz <andre@wasy.de> wrote:
> Erik Hemdal wrote:
> > > But if somebody else comes in between and checks in his
> > > source code, he will occupy 801 and I will get 802 (802 will
> > > be the release) and thus he will corrupt the whole build
> > > process because 802 does not have the exact release files.
> >
> > I have not found a way to lock a repository, but perhaps others know more
> > than I do.
>
> Shutting down the server during the time of the build seems to
> be a fairly safe method. I am doing so for nightly builds and
> backup. Of course, this won't work in a 24/7 scenario but so far
> nobody complained about svn being unreachable between 3 and 4
> at night...

How about a pre-commit hook which rejects commits between 3 and 4? You
could even do so with a message saying that it's not time to work now
:-)

bye,

Erik.
Received on Mon Jul 31 10:39:29 2006

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.