I wrote an article about a year ago, about svn (Subversion) being missing in Mountain Lion (10.8) and how to install it manually. Since then, I’ve got a new mac and have used myself this post to install it on the new machine. Since then there has also been new versions of subversion but unfortunately all my software are not compatible with it. So I’ve been looking into this topic again and wanted to share.
- OSX comes with a SVN command line client, but unfortunately they do not include the JavaHL library. The best thing to do is to install one of the OSX package managers for open-source software, such as MacPorts.
- Syncro Subversion (SVN) Client makes easier document and code sharing between content authors or developers. Syncro SVN Client is the best multiplatform Subversion client that allows you to browse repositories, check for changes, commit changes, update your working copy and examine the revision history.
Another way to install svn on mac is to use a ditribution package from wandisco. They are available here. Do not use the packages on CollabNet which are outdated.
Unzip the .pkg file and double click on it and follow the instructions to have it installed.
The Cornerstone Subversion (SVN) client for Mac just got better with shelving, checkpointing, and blazing fast performance. Get a free trial or buy for $79 per year.
I still like it better with Homebrew since it makes it very easy to upgrade the packages and switch between packages.
To find out the version currently active with Homebrew:
You can check the versions of subversion which are available using:
This will return multiple lines, one per version, each containing a version number and the checkout command e.g.:
Choose the version you want to install e.g. here 1.8.1, switch Homebrew’s prefix,checkout the package and install it:
Then reset the formula:
You can then switch between versions using brew switch (which updates the symlink in /usr/local/bin to the specified formula version in the Homebrew cellar) e.g.:
Of course mechanism can be used for any other Homebrew package.
If you get errors in XCode while accessing working copies created with a newer version, you might need to link the newer version into XCode by doing the following:
- Create a backup directory for the svn binaries currently used by XCode
- Moving the current binaries to the backup folder
- Linking the binaries of the new version installed with Homebrew into Xcode (as a replacement for the moved ones)
You can do that by executing the following and replacing 1.7.4 by the actual subversion version you want to use in XCode:
Note that you can also use Homebrew-versions instead. It provides multiple formulas for different versions of existing packages e.g. subversion1.6 and subversion1.7. If you use it, you will of course not be able to upgrade from 1.7 to 1.8 but only from 1.7.2 to 1.7.3 but it’s maybe what you are after…
Client Svn For Mac Osx
You can install from Homebrew-versions using:
You’ll notice that Homebrew-versions only has packages for subversion 1.6 and 1.7. But I guess 1.8 should come soon.
Svn Client For Mac Os
So there are quite a few ways to install subversion on your mac and handle different versions. The one I like best is still just installing it with Homebrew and switching to the one I use most. The other versions are still available by other switching to a particular version as shown above or by using the svn command from a particular version in the Homebrew Cellar e.g.
Related posts: