SVN Pristine text not found 解决方案

SVN Update时被中断,下次更新或Cleanup的时候提示:
The pristine text with checksum ‘9db7aaf659d97e6f670cec484f27ba25aacbd75e’ was not found
错误,解决方法如下:

(升级SVN新版客户端)
将出错文件的信息从SVN记录数据库wc.db中删除,然后重新Update出错文件所在路径即可。
具体操作:

#打开记录数据库
sqlite3 .svn/wc.db

#把下面的your missing pristine here 替换为出错文件的sha1值,
#(例子中为9db7aaf659d97e6f670cec484f27ba25aacbd75e),注意前面的$sha1$要保留
sqlite> select * from pristine where checksum="$sha1$your missing pristine here";

#执行上面的命令后查询结果为空,那么继续下面的操作
sqlite> select * from nodes where checksum="$sha1$your missing pristine here";

#找到一条记录,那么直接删除,命令如下
sqlite> delete from nodes where checksum="$sha1$your missing pristine here";

上面的命令执行完毕后,再删除出错文件本身,再重新Cleanup+Update想要更新的文件夹就不会出现问题了。

你可能感兴趣的:(SVN Pristine text not found 解决方案)