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

Re: Atomic updates

From: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2005-11-22 18:24:12 CET

On 22-Nov-05, at 12:15 PM, Erik Huelsmann wrote:

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

So change that to read "rename your working directory" instead of
delete. It would require a bit of messing around for sure, but I
don't think it is impossible.. perhaps impractical.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 22 18:27:35 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.