[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: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2006-02-01 21:35:06 CET

On 1-Feb-06, at 9:35 AM, Ryan Schmidt wrote:

> 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.

With the one exception of using svn:externals to pull in bits of
shared code from other parts of the same repo. When the externals
are fetched each one is treated as a separate check out.

Scott

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