Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I switch a subversion repository using only command-line tools?

Tags:

svn

Until recently I was a read-only user of an open-source project on GoogleCode. I've been invited onto the team however I need to switch my local repository from using the http:// url to the more secure https:// url which will allow me to commit.

At work TortoiseSVN for Windows has a handy "switch" feature which will allow me to change the server for any local repo, however this feature does not seem to be present in the SVN for eclipse & command line that I have on my Ubuntu 9.04 desktop. Surely there must be a way to do it?

As an act of desperation I could simply extract the diff to text, check out the new repo from fresh and then re-apply my diffs... but there has to be a more elegant way to do it?

Thanks

like image 524
Salim Fadhley Avatar asked Sep 08 '09 21:09

Salim Fadhley


1 Answers

The command-line way is:

svn switch --relocate http://old-url https://new-url
like image 175
derobert Avatar answered Nov 17 '22 11:11

derobert