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

Re: Atomic operations

From: John Szakmeister <john_at_szakmeister.net>
Date: 2005-05-10 12:01:10 CEST

On Tuesday 10 May 2005 05:59, Vincent Lefevre wrote:
> On 2005-05-10 05:43:27 -0400, John Szakmeister wrote:
> > Not true. An update can fail midstream. Just hit Ctrl+c in the
> > middle of an update, and find out. However, updates on files won't
> > be applied unless the entire update *for that file* is present. So
> > you don't have to worry about things like 2 of 3 lines being
> > inserted, or something bizarre like that.
> The underlying file system / OS doesn't allow complex atomic
> operations, so you may still get something bizarre, at least
> if you do a "kill -9" (under Unix), which is not trappable.

Right. I was working on the assumption that he was talking about a
failure as a result of network interaction or something else reasonably
detected by Subversion's error framework, not someone maliciously killing
a process. :-) In the latter case, you're right, 'svn cleanup' and 'svn
up' will do the trick.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 10 12:11:01 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.