Direct Question: With a working copy checked-out from a subversion server, is there a way ??.svn/entries?? to redirect the working copy to a different location from where I originally checked it out?

Background: I have a small subversion server which I have visible on the web. However, living off a cable-modem, my dynamic ip shifts and every so often I have to update the dns entries. For the next 24 hours, I probably won't be able to sync through the website until my local dns server catches the update.

In the mean time, I'd really like to sync -- for the moment -- I'm sitting next to the server and can access it through the local network. So I tried editing the 'entries' file in the .svn folder, replacing the website name with the local ip address, but it didn't work (I'm not sure why -- it appeared to revert my changes to the entries file & then append file names and version info.

有帮助吗?

解决方案

You are looking for the switch command with relocate option.

svn switch --relocate https://oldserver/svn/repos https://newserver/some/directory

For more information, take a look here.

You also have that available in TortoiseSVN, under the Relocate context menu.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top