当SVN版本迁移的时候,由于svn版本库有可能改了名字,导致在执行版本更新的时候报如下错误:
[root@localhost hello]# killall svnserve
[root@localhost hello]# cd /root/
[root@localhost ~]# mv world newworld
[root@localhost ~]# svnserve -d -r /root/
[root@localhost ~]# cd /root/svn/world_hbk/
[root@localhost world_hbk]# svn up
正在升级 '.':
svn: E210005: Unable to connect to a repository at URL 'svn://192.168.8.194/world'
svn: E210005: No repository found in 'svn://192.168.8.194/world'
可以看到对版本库重命名了(或者可以考虑是SVN版本跨服务器迁移),更新的时候会遇到上述错误。
解决办法为SVN重定向
格式 svn switch --relocate svn原路径 svn新路径
[root@localhost world_hbk]# svn sw --relocate svn://192.168.8.194/world svn://192.168.8.194/newworld
再次更新,没问题
[root@localhost world_hbk]# svn up
正在升级 '.':
版本 1。