1. 程式人生 > >SVN Pristine text not found 解決方案

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想要更新的資料夾就不會出現問題了。