解決 SVN cleanup 任務中斷導致無法 update
今天在更新 svn 時, TortoiseSVN 一直在提示要進行 cleanup ,而執行 cleanup 時又提示:
Cleanup failed to process the fllowing paths:
xxxx
Privous operation has not finished; run 'cleanup' if it was interrupted
Please execute the 'Cleanup' command.
看這提示的內容,因為有操作未完成,所以要執行 cleanup ,陷入了死循環。
查了一下資料,找到解決問題的辦法是清理掉 svn 的工作隊列記錄。
在代碼目錄下有一個 .svn 目錄,其中的 wc.db 是 svn 所使用到的 sqlite 數據庫文件。隨便找一個 sqlite 數據庫管理軟件,打開這個文件,並把 work_queue 表的內容清理掉。
如果沒有找到,可以使用官方提供的 sqlite3.exe,下載地址為 http://www.sqlite.org/download.html
然后在命令提示符下,運行:
sqlite3.exe <wc.db文件路徑>
就會打開 wc.db 數據庫,然后,可以執行編輯操作:
sqlite> select * from work_queue;
sqlite> delete from work_queue;
清理完成后,就可以重新進行 cleanup 和 update