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

RE: Re: Consistent revision when retrieving from repository

From: Stuart Celarier <SCelarier_at_corillian.com>
Date: 2005-10-18 00:43:16 CEST

Stuart wrote:
> Simon says I should ask this question on the TSVN dev list... Can
someone reconcile [these two statements]?

Simon wrote:
D'oh. I meant to say the SVN dev list. Sorry.

[Stuart] Actually TSVN dev list seems the right place to be asking. The
folks on the Subversion developer list don't know much about TSVN's

I've done some more research on the Subversion lists. Here's some
information that may be useful to TSVN developers. Or maybe not. From
Ben Collins-Sussman [1]:

"If I run 'svn checkout URL', and somebody commits while I'm receiving
the tree, do I get a half-broken tree, perhaps something buggy or
unbuildable? Absolutely not. The checkout and update commands always
grab exactly *one* revision tree, and revision trees are immutable
objects. If you don't specify the revision with -r, then HEAD is
converted to a single revision number at the beginning and that exact
tree is fetched. Repository writers never interfere with repository
readers. So here's at least one sense in which checkout is "atomic".
You always get one specific tree, not a mix of trees.

"If I run 'svn checkout URL1 URL2', is it possible to get revision N of
URL1 and revision N+1 of URL2? Yes, but that's just because of the way
the commandline client parses arguments. It treats that command as if
you had typed 'svn checkout URL1; svn checkout URL2', so it's possible
that a commit happens during the first checkout. In this example, the
commandline client isn't treating the targets as an "atomic group"
here. Could this be improved? Surely. But a simple workaround is to
figure out the value of HEAD, then run 'svn checkout -r X URL1 URL2'."

In the case described in the first paragraph, does TSVN treat it with
the workaround described in the second paragraph?


[1] http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=25226

To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Oct 18 00:43:35 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.