SVN 進行 Commit 或 Update 有時候會發生 Lock 的情況,
這時候 SVN 會請我們執行「Cleanup」,
但有時候執行完「Cleanup」,有一定機率會導致永久Lock情況。
永久Lock會導致Visual Studio 的 Visual SVN 「功能列」、「版控燈號」消失。
SVN報錯訊息
Previous operation has not finished;
run ‘cleanup’ if it was interrupted Please execute the ‘Cleanup’ command.
run ‘cleanup’ if it was interrupted Please execute the ‘Cleanup’ command.
解決步驟
- 下载「sqlLite」,選擇「Precompiled Binaries for Windows」下載。
- 將下載回來的「sqlite3.exe」放到專案根目錄。
- 使用「cmd.exe」,並將路徑移至專案根目錄。
- 執行指令: 「sqlite3.exe .svn/wc.db “select * from work_queue”」。
- 最後在執行指令: 「sqlite3.exe .svn/wc.db “delete from work_queue”」。
- 接著在專案根目錄執行「Cleanup」,即可排除此問題。
參考文獻:
http://blog.csdn.net/luojian520025/article/details/22196865
http://kaifage.com/notes/85/previous-operation-has-not-finished-executive-svn-cleanup-failed.html