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

Re: Checkout and update atomicity

From: Stefan KŁng <tortoisesvn_at_gmail.com>
Date: 2005-10-18 10:00:16 CEST

On 10/18/05, Matthias Wšchter <matthias.waechter@tttech.com> wrote:
> >> What happens if I select a couple of files/directories in the explorer
> >> and then apply "SVN Update..." - the dialog shows some consecutive
> >> updates each finishing with "Completed At revision: xxxxx". I'm not
> >> sure whether "xxxxx" is the same for each of these entries, but for me
> >> it looks like these are sequential update operations each requesting
> >> the HEAD revision.
> >
> > That's exactly the case Simon mentioned. If you do that with the CL
> > client, it updates all items to HEAD individually. Which means that
> > the first item updated may have a lower revision than the last item
> > updated if there was a commit from someone else in between.
>
> I'm really puzzled! Using the CL: If I enter "svn update a* subdir/" to
> only update all files starting with 'a' in the current directory and the
> directory subdir/ it updates these files and _after_ the file list it
> reports _one_ repository revision it updated to. I don't see why this
> should not be atomic (in the sense of HEAD resolution to not more than
> one repository number).

svn up file1 file2 file3
Revision 74.
Revision 74.
Revision 74.

I don't know why
svn up *.bat
Revision 74.

only shows one revision. I'll have a look.

> In TSVN if I select all files starting with "a" and select subdir/ as
> well, right-mouse-clicking and selecting "SVN Update..." it reports one
> revision number for each of the selected items (one for each file
> starting with "a" and one for the subdir/).
>
> OK, if TSVN really first asks for the HEAD revision this will work out
> anyway, but again, I can't see why SVN shouldn't be atomic - I thought
> that's one of its strenghts compared to CVS where you are never sure
> where you 'cut' the revision tree of each file when you update or checkout.

It isn't atomic because it fetches from HEAD, which can change between
targets. It works for single targets (even if that target is a folder
with many thousand files in it), but it doesn't for multiple targets.

You're making the mistake of believing what the UI tells you.

Stefan

--
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
--
Received on Tue Oct 18 09:19:53 2005

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