1. 程式人生 > >SVN同步時報錯:“Previous operation has not finished; run 'cleanup' if it was interrupted”

SVN同步時報錯:“Previous operation has not finished; run 'cleanup' if it was interrupted”

SVN同步時報錯:“Previous operation has not finished; run 'cleanup' if it was interrupted”

 

這大概是SVN之前的操作沒有完成,又進行下一個操作,造成死鎖。

SVN的operation是存放在”work_queue”裡的。而”work_queue”是在內嵌資料庫wc.db的work_queue表中的。看看work_queue表中放了些什麼,再做處理。

 

1、找到專案的 .svn資料夾,看是否有wc.db 這個內嵌資料庫。

內嵌資料庫一般是用sqlite進行輕量級管理的。網上下載一個sqlite3.exe

 

2、為了方便命令列執行,將sqlite3.exe放到 .svn的同級目錄

 

3、啟動cmd進入到sqlite3.exe所在目錄,執行

sqlite3 .svn/wc.db "select * from work_queue"

會查出一些記錄,就是之前未完成的操作

 

再執行

sqlite3 .svn/wc.db "delete from work_queue"

將這些未完成的操作刪除。如圖

 

4、到專案中執行 SVN的 cleanup (清理)操作即可