幸福飞过海 - 2014年2月 https://fengqi.me/2014/02/ zh-CN 风起的网络记事本 Mon, 24 Feb 2014 07:42:00 +0000 Mon, 24 Feb 2014 07:42:00 +0000 [总结]svn更换新仓库地址, 以及UUID不同的解决方式 https://fengqi.me/unix/186.html https://fengqi.me/unix/186.html Mon, 24 Feb 2014 07:42:00 +0000 风起 shell 命令:

svn relocate svn://svn_old svn://svn_new

一般会提示:

svn: E195009: The repository at 'svn://svn_old' has uuid
'bdbd6e13-965c-4da7-a4da-d4840425081e', but the WC has
'9dcab4f9-d1ff-49d9-8b8d-a11efef133c1'

uuid是仓库创建的时候生成的, 本地客户端也会拿它来对比是否是同一个svn仓库, 解决方法有两种:
1: 重新checkout
文件太多, 我受不了

2: 修改本地uuid

sqlite3 .svn/wc.db
sqlite> select * from REPOSITORY; #一般是只有一条记录, 修改后会有两条
sqlite> update REPOSITORY set uuid="bdbd6e13-965c-4da7-a4da-d4840425081e" where id=1;
sqlite> .exit

svn update即可

]]>
0 https://fengqi.me/unix/186.html#comments https://fengqi.me/feed/2014/02/