Using Subversion with Network Drives in OS X
Ever try to get subversion working between multiple Macs over a home network without WEB Dav or public key authentication over ssh? Well, that was what I was trying to accomplish over this weekend and it apparently isn’t as straightforward as I thought. There seems to be an issue with subversion (SVN) and apple’s AFP protocol, something to do with not being able to obtain exclusive locks? Well, that is all I could find on the problem. So, if anyone knows how to fix this, I would like to know. However, I did find another solution on my own, that was just as useful to me as using an AFP mounted drive, but much more versatile. Introducing… MacFUSE!
MacFUSE implements a mechanism that makes it possible to implement a fully functional file system in a user-space program on Mac OS X (10.4 and above).
In a nutshell, MacFUSE lets you turn any number of connection interfaces into a fully functional file system. With the files provided in the link above, you can mount an FTP or SSH login as a network drive, thus solving my issue of using subversion over a network drive. The best part is, I can now easily access my Mac Pro remotely as well. Although, now that I think about it, I have never tried to mount a remote drive over AFP so that could have always been possible.
I have to admit this is my new favorite development tool since it makes working remotely much more pleasant. Instead of opening files one at a time through Cyberduck, my FTP client, and Textmate, I can now mount my FTP account as a network drive and create projects with Textmate to edit all my files. This also happens to be a great solution for all the people wishing for FTP support within Textmate.
Anyhow, I hope this can be of help to someone else.