首先切换到你的svn所在的目录,然后使用svn info,查看当前目录的svn路径信息。
然后重点看Working Copy Root Path: /home/project/FirmWare/project01。
这个是你本地的svn checkout root路径。然后根据这个路径,修改SVN的url,使这个路径与root路径一致。
然后就是使用svn switch --relocate命令进行切换
root@personal-desktop:/home/project/FirmWare/project01/Code# svn info
Path: .
Working Copy Root Path: /home/project/FirmWare/project01
URL: http://ip1/svn/SVN_REPO/project/firmware/project01/Code
Relative URL: ^/project/firmware/project01/Code
Repository Root: http://ip1/svn/SVN_REPO
Repository UUID: e19ac3c3-e5fa-4a0b-9981-c3024a90e5af
Revision: 23068
Node Kind: directory
Schedule: normal
Last Changed Author: user007
Last Changed Rev: 23064
Last Changed Date: 2020-07-07 07:19:45 +0800 (二, 07 7月 2020)
# svn switch --relocate http://ip1/svn/SVN_REPO/project/firmware/project01 http://ip2/svn/SVN_REPO/project/firmware/project01
Authentication realm: svn for FW
Password for 'root':
Authentication realm: svn for FW
Username: youusername
Password for 'youusername': ********
Tags:
svn relocate
svn relocate