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

Re: Mac OS X WebDAV access deletes revisions

From: Helge Hess <helge.hess_at_opengroupware.org>
Date: 2006-08-08 21:35:57 CEST

On Aug 8, 2006, at 13:13, Frank Spangenberg wrote:
> if a file in my repository was modified from a Mac OS X WebDAV client,
> all previous revisions are gone.
>
> After that the revision history looks like this:
>
> R183: added /.dat0169.001
> R184: modified /.dat0169.001
> R185: deleted /.dat0169.001
> added /.361-176723752-2.txt
> R189: deleted /.361-176723752-2.txt
> added /Test.txt
...
> What's wrong with the Mac client?

Nothing. This is a regular "Unix" atomic write operation done by the
application, not an issue in the WebDAV filesystem/client. The app
saves everything to a temporary file and only if that succeeded,
moves the file to the final location.

Now of course this is stupid when writing to WebDAV (which has other
operations to ensure consistency) but the MacOS application doesn't
know about that. By mounting you 'fake' that the WebDAV server is a
Unix style filesystem which in turn produces the mentioned issues.

Summary: don't write to Svn with MacOS WebDAV FS. Use some Svn
specific client or at least a WebDAV one.

Greets,
   Helge

PS: If you are interested, this is the 'atomically' option in Cocoa
(I assume you use textedit ...):
   http://developer.apple.com/documentation/Cocoa/Reference/
Foundation/Classes/NSData_Class/Reference/Reference.html#//apple_ref/
occ/instm/NSData/writeToFile:atomically:

-- 
Helge Hess
http://docs.opengroupware.org/Members/helge/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 8 21:38:54 2006

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.