Reputation: 2432
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)
Upvotes: 1
Views: 5297
Reputation: 2432
I've managed to solve problem:
20000
is forwarded to port 10000
on server)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!
Upvotes: 3