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?
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.
Go to root folder of the svn project. Then, right click. TortoiseSVN->Relocate. And assign the new IP address.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With