troubleshooting Question

Subversion + DAV = multiple transactions on Mac Problems

Avatar of burstingfist
burstingfist asked on
Web Development SoftwareApple Networking
3 Comments1 Solution381 ViewsLast Modified:
Ok, so we've got subversion (v1.3) setup on a Linux machine.  Everything is working great for all platforms (Windows & Linux) but the Mac still is posing a major problem.  To accomodate designers, we are using the DAV and Autoversioning features of SVN.  All the Mac designers have to do is mount the Subversion repository and drag and drop files.  To the end user this is working fine, they drop files on to the DAV mount, the files are then auto versioned and auto updated to the development server(using post-commit hook).

The problem is this: each time a file is overwritten (i.e. Modified), the Mac performs a Delete, an Add, and then a Modify.  Thus 3 revisions occur for what should be 1 revision.  On Windows and Linux, only 1 revision occur (a single Update/Modify).  On the Mac it appears that this is caused only by the finder, because if I use the terminal to copy the file to the DAV-SVN mount, only a single transaction is incurred (as expected).  

So something about the finder drag&drop causes this behavior.  The Finder also performs an Add and a Delete of the "._" resource files.  So even though the "._" files are not maintained in the repository, they incur 2 additional transactions (thus 2 additional revision numbers).  I can probably use the pre-commit hook to reject all "._" files to prevent these transactions.

This is just one of those annoying problems that one cannot foresee when tackling a project.  It is really frustrating though because the revision numbers are growing 3 to 5 times as fast and the extra revisions are just chaff and every time the file is deleted, the revision history is lost for that file.

So, does anyone know how to reduce the number of Subversion transactions incurred when dragging&dropping from Mac finder to SVN-DAV mounted location?  I need to get an overwrite to be 1 Update transaction rather than 3 Delete, Add, Update transactions.

Using Mac OSX 10.4.4
Gentoo Linux with Apache 2.1
Subversion 1.3
ASKER CERTIFIED SOLUTION
DarthMod

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 3 Comments.
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>

Mike

Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 3 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004