How To Relocate An SVN Working Directory When a Repository Has Moved
Wednesday, November 16th, 2011
I’m a big fan of Versions.app. On the Mac, there is no better way to manage your SVN-controlled projects.
I’m also a fan of Versions’ sister site, Beanstalk. The two work seamlessly together and make version control a breeze, especially in a team coding environment.
If you’re like me, you have a bunch of archived projects that you have to dust off occasionally when an old client calls in a panic about something or other. At some point in the past, Beanstalk (admirably) deprecated all their old http-accessed repositories in favor of more secure ones over https. When this happened, it orphaned any working repositories that still pointed to their old http urls.
You’ll know you’re affected when you get a message like this:
svn: Repository moved permanently to 'https://account.svn.beanstalkapp.com/repo'; please relocateWhile Versions itself doesn’t have a way to relocate a working directory, it’s dead-easy to do it via the command line. Fire up your Terminal and type:
cd /path/to/working/directory
svn switch --relocate http://account.svn.beanstalkapp.com/repo https://account.svn.beanstalkapp.com/repo
(Obviously, change the path, “repo” and “account” placeholders with your own values.)
That’s it. Run an update and then you’re good to go.
Sphere: Related Content



Update: With the release of 10.7.2, this issue is resolved. The Apple engineers have reverted the code back to its pre-Lion state complete with the ability to copy hex values.
Apple has just launched an effort to support more widespread adoption of HTML5 in the developer community. 
MAMP is a great tool for running and managing a development server when you require more than the basic PHP configuration included with Leopard. However, getting the web server to run typically involves launching MAMP, entering your root password, and quitting MAMP.
Are you doing iPhone development on a Mac? Do you use Dreamweaver as your IDE? If your answer to both questions is ‘yes,’ then try this simple tip.
Honestly, I can’t remember if Subversion came pre-installed on Tiger or not, but I know for a fact that it does come as a standard component on Leopard. This is great news.