[英]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. 最近,我被迫将安装了
subversion
版本控制服务器的开发服务器移动到新位置,因此该服务器获得了新的IP
地址。 The location of repository physically on disk is /srv/svn_firmAA/project1
. 磁盘上物理存储库的位置为
/srv/svn_firmAA/project1
。 Old subversion
server repository address is svn://192.168.0.2:10000/srv/svn_firmAA/project1
. 旧的
subversion
服务器存储库地址为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: 现在,新的
subversion
服务器存储库地址为svn://xxx.xxx.xxx.xxx:10000/srv/svn_firmAA/project1
,我尝试使用以下方法relocate
工作副本relocate
到新IP
:
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: 这是工作副本
svn info
输出:
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: 我设法解决了问题:
20000
is forwarded to port 10000
on server) 20000
已转发到服务器上的端口10000
) svn switch --relocate
parameters must NOT INCLUDE repository paths: svn switch --relocate
参数不能包含存储库路径:
svn switch --relocate svn://192.168.0.2:10000 svn://xxx.xxx.xxx.xxx:20000 svn开关-重新定位svn://192.168.0.2:10000 svn://xxx.xxx.xxx.xxx:20000
Now it works perfectly! 现在,它可以完美运行了!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.