简体   繁体   中英

Cannot relocate svn working copy

Recently I was forced to move my development server with installed subversion version control server on it to new location and and therefore the server gained new IP address. The location of repository physically on disk is /srv/svn_firmAA/project1 . Old subversion server repository address is svn://192.168.0.2:10000/srv/svn_firmAA/project1 . Now, the new subversion server repository address is svn://xxx.xxx.xxx.xxx:10000/srv/svn_firmAA/project1 and I tried to relocate working copy to new IP with:
svn switch --relocate svn://192.168.0.2:10000/srv/svn_firmAA/project1 svn://xxx.xxx.xxx.xxx:10000/srv/svn_firmAA/project1
and I get following error:

svn: E155024: Invalid source URL prefix: 'svn://192.168.0.2:10000/srv/svn_firmAA/project1' (does not overlap target's URL 'svn://192.168.0.2:10000')

Why?

Here is working copy svn info output:

Path: .
Working Copy Root Path: /home/user/Projects/working_copy
URL: svn://192.168.0.2:10000
Relative URL: ^/
Repository Root: svn://192.168.0.2:10000
Repository UUID: 54d40152-b288-42d4-b588-490a5dcf01bf
Revision: 579
Node Kind: directory
Schedule: normal
Last Changed Author: user
Last Changed Rev: 579
Last Changed Date: 2015-12-30 11:06:19 +0100 (sre, 30 dec 2015)

I've managed to solve problem:

  1. Incoming port was wrong (port 20000 is forwarded to port 10000 on server)
  2. svn switch --relocate parameters must NOT INCLUDE repository paths:

    svn switch --relocate svn://192.168.0.2:10000 svn://xxx.xxx.xxx.xxx:20000

Now it works perfectly!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM