Leif160519的blog Leif160519的blog

——————

目录
mac上如何修改svn的仓库地址
/    

mac上如何修改svn的仓库地址

直接使用svn switch --relocate <old_svn_url> <new_svn_url>会提示

svn: E195009: The repository at 'old_svn_url' has uuid 'a73b0011-1026-6345-8515-1cdf22922e6a', but the WC has '4e399746-358d-154b-9d1e-66353ab42eeb'

这是因为svn迁移过后,uuid都会重新生成,每一个地址仓库的uuid都不一样,不同机器check同一个仓库地址的项目uuid都是一样的,故只需要修改uuid即可,操作如下:

sqlite3 .svn/wc.db
sqlite> select * from REPOSITORY; #一般是只有一条记录, 修改后会有两条
1|https://192.168.3.245/svn/svn|4e399746-358d-154b-9d1e-66353ab42eeb #显示当前的uuid
sqlite> update REPOSITORY set uuid="a73b0011-1026-6345-8515-1cdf22922e6a" where id=1; #修改uuid
sqlite> .exit

注意:将uuid修改为上述报错显示中的uuid即可

修改之后使用svn switch --relocate <old_svn_url> <new_svn_url>命令修改svn地址,回车之后选择p永久更改,之后输入一次svn的密码即可成功
更新svn:

svn update

Windows下修改完uuid之后可以用小乌龟relocate一下地址就可以了,跟命令是等效的


“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill

标  题mac上如何修改svn的仓库地址
作  者Leif160519
出  处https://github.icu/articles/2019/10/31/1572504706907.html
关于博主:坐标南京,运维工程师,如有问题探讨可以直接下方留言。
声援博主:如果您觉得文章对您有帮助,可以评论、订阅、收藏。您的鼓励是博主的最大动力!