Monday, November 24, 2008

svn for everything

most applications don't support svn.  that's a fact of life.  for most apps, to get svn you must open a command line or use something like tortoisesvn or scplugin(windows explorer and mac finder integration respectively) or a tool with no integration at all.  in comes webdav support!
windows, mac, and linux natively support webdav and it just turns out that svn is based on webdav.  i've setup a svn server on my MBP so i can version documents and other files using whatever editor i want.
i had to do this locally because i tried many different svn providers and none (a) were fast enought, or (b) worked(for write support).
once you've got a server, you just mount it by going "Go->Connect to server..." in Finder, type in your address, enter your username and password(you MUST have one for write support), and click Connect.
to tie it in more, i made a folder on the server(Versioned Documents) and symlinked it into my home directory and put it in my sidebar(Finder and the Open and Save dialogs).  to top it off, i've added it to my login items so it mounts on login.
now i never have to worry about losing one revision of an important file because everything is now safely contained in svn(backed up using Time Machine) and available through standard svn tools and websvn