Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Our subversion server has a new IP address - now what?

Tags:

svn

We connect to the repository by ip address - a quick hack introduced by the guy before me, since we don't have a real server, just an old pc running apache, svn etc. We recently moved offices and it seems the "server" is using DHCP - it booted to a new IP address this morning. Logging into trac (also running on that server) is easy: Just change the bookmark in the browser.

But what do I do about my working copy? How can I tell that where to find the server?

like image 671
Daren Thomas Avatar asked Sep 11 '09 08:09

Daren Thomas


People also ask

How do I find my svn server IP address?

If you want to find out your IP address but don't know how to, you might be able to visit http://www.whatismyip.com/ from the server to find out. This is assuming your server will be accessible from the internet instead of your local network.

How do I change my TortoiseSVN IP address?

Go to root folder of the svn project. Then, right click. TortoiseSVN->Relocate. And assign the new IP address.

Does Subversion require a server?

The short answer: no. The long answer: if you just want to access a repository, then you only need to build a Subversion client. If you want to host a networked repository, then you need to set up either Apache2 or an "svnserve" server.


2 Answers

Do an svn switch and use the --relocate option:

http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.switch.html

(or in TortoiseSVN, right-click -> TortoiseSVN -> Relocate...)

The relocate does not require repository access and is meant exactly for the case where the content is the exact same but the repository base is changed.

like image 73
Amber Avatar answered Sep 20 '22 04:09

Amber


Davs answer points to the right chapter, but to be more precise, its actually the command

svn switch --relocate [old URL] [new URL]

which maps to the TortoiseSVN command TortoiseSVN -> Relocate

like image 32
Frank Bollack Avatar answered Sep 19 '22 04:09

Frank Bollack