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

Re: Parallel checkout within checkout

From: Stefan Sperling <stsp_at_elego.de>
Date: Sun, 7 Jul 2013 17:44:24 +0200

On Sat, Jul 06, 2013 at 06:39:27AM -0500, Frank Loeffler wrote:
> My theory is that the checkout of the contained repository tries to look
> into .svn of the containing repository, and finds it 'currently used'.

You mean "working copy" (the copy being checked out), not "repository"
(the database we check out from).

Yes, I believe what you are seeing is that the nested 'svn checkout'
operation ends up using the .svn directory of the enclosing working
copy.

> This was not the case for versions <1.7, maybe because these didn't use
> a 'central' .svn directory.
>
> I would now argue that this is a regression, since svn <1.7 worked fine
> in this scenario, while >=1.7 doesn't.

I would argue that you were relying on an implementation detail.
Nowhere does the documentation mention or even recommend what you
are doing.
 
> Ways to reproduce:
>
> 1. svn co some_repo
> 2. interrupt during checkout (control-Z)
> 3. cd into new (partial) checkout
> 4. svn co some_other_repo

I have two suggestions:

When using 1.7 clients, run checkouts in parallel but into temporary
directories that are not nested. When done, move the temporary working
copies into each other to create the nested structure. This should work.
If you keep all temp working copies on the same disk then moving them
should be very cheap.

If you use HTTP to access the repository, my other suggestion is to update
both clients and server to 1.8 and test checkout performance. You might
benefit from the new HTTP client layer (serf) in skelta mode, which might
improve throughput to the point where you don't need to checkout different
working copies in parallel for performance reasons. See here for details:
http://subversion.apache.org/docs/release-notes/1.8.html#neon-deleted
Received on 2013-07-07 17:46:01 CEST

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.