Subversion 1.7 to 1.6 downgrade with MacPorts
This article was originally published at Planet PHP
on 2 November 2011.
MacPorts told me that there had been a subversion update (1.7.1), which I went ahead and installed. Woo! Huge speed improvements for everything I tried with the CLI client, great stuff. A short time later my IDE (PHPStorm) fell over screaming. It doesn't like 1.7 yet
, and it's a bit stuck until SVNKit supports it. I should have checked really.
So how to downgrade? Fortunately this post
makes it very easy. So I just did:
sudo port deactivate subversion @1.7.0_1
sudo port activate subversion @1.6.17_1
But now I'm stuck with a working copy in 1.7 format with uncommitted changes, and there is no tool to convert it back to 1.6 format. This is easily worked around; check out a new working copy (using svn 1.6) and sync across the changes, ignoring the .svn folders, like this:
rsync -av --update --exclude=".svn/***" ~/Sites/myproject1.7/ ~/Sites/myproject1.6
All happy now.