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

Re: Re: Atomic updates

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2005-11-22 18:15:07 CET

On 11/22/05, Thompson, Graeme (AELE)
<Graeme.Thompson@smiths-aerospace.com> wrote:
> You could easily write a script to give you atomic updates:
> Copy your current working directory.
> Run svn update on your working directory
> If (successful)
> {
> delete your copy
> }
> Else
> {
> delete your working directory
> move the copy back to your working directory
> }
> This could easily be done on any of the operating systems that svn supports
> Just run this script to update you working directory and you will have what you want.

But it's not atomical: it's not a fail or succeed operation: 'delete
your working directory' can fail half way, so that it's impossible to
copy over the copy-working-dir. That's what I mean there's no
guaranteed state of either one or the other situation. That's also why
I say that it's undoable (at least atm).


Received on Tue Nov 22 18:18:18 2005

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.