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

Re: Temporarily locking a subversion repository

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-02-01 15:35:37 CET

On Feb 1, 2006, at 04:54, Adam Lau wrote:

> As part of our continuous integration process I have a nant script
> that pulls a fresh copy of the source (svn checkout) from our
> subversion repository. Due to some network issues this can take
> several minutes. Is there a way I can lock the repository/stop
> commits from happening while the source is in the process of
> getting checked out?

No need. If the checkout succeeds, it is atomic; you will get a
working copy that is all at one revision. If the checkout fails,
update the working copy until it succeeds (in case of flaky network
of whatever), and then you also have a single-revision working copy.
Doesn't matter if others have committed other things in the mean
time. Subversion is very much designed for this.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 1 16:00:09 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.