When the repository url changes
Sometimes it happens that the url of a (subversion) repository changes, e.g. if there is a protocol switch from http to https. If you use an IDE like Eclipse it means you have to change the settings for that repository. Unfortunately, it is not that obvious how to accomplish this in Eclipse (at least not for me). If you select “Properties” of a repository in the “SVN Repository Exploring” perspective, you will see the url, but you cannot change it:

So my workaround was to remove the project(s) and the repository from Eclipse, and to recreate them using the new repository url. It works, but it is a bit cumbersome (fortunately you do not have to do that very often).
But now I found a better solution. There exists a “Relocate” wizard for this purpose, which makes it really easy. To start it you have to select a repository in the “SVN Repository Exploring” perspective and with a right mouse-click you get the “Relocate” menu entry. The first dialog shows some explanations plus the affected projects:

In the next and last step you can specify the new url:

That’s it.




Uhm, very handy posting. I’ve often wondered how to change this, and had to go to some crazy steps to get around changed repository’s with eclipse.
.. thanks.
You can also do:
Project / Team / Disconnect … (and remove .svn dirs)
then
Project / Team / Share
Cheers
@rtconner: I am glad it is useful for you :)
@Marco: Thanks for your tip!
It is also possible to use the command line (if you use another text editor):
svn switch –relocate [old_url] [new_url] [path_to_working_copies]
hi,
thx titang for the tips.
There is a little typo, its 2 “-” before “relocate”.
@titang: Thanks for your tip!
@metasan: Thanks for the correction!
Just what I needed to know, thanks.
@boardtc: I am glad it was helpful for you :)