IT Previous operation has not finished,执行SVN cleanup失败

阅读(10319)

Windows 系统

使用SVN时,一旦遇到以下的提示就意味着要重新checkout一份新代码,再重新做提交:

Previous operation has not finished; run 'cleanup' if it was interrupted
Please execute the 'Cleanup' command.

庸医误人。

最优办法如下:

  1. 下载sqlLite,“Precompiled Binaries for Windows”就可以了: http://www.sqlite.org/download.html
  2. 在项目的本地根目录下,执行:
    sqlite3.exe .svn/wc.db "select * from work_queue"
  3. 这样会看到当前未完成的所有操作列表
  4. 接着执行(这是最关键的一步):
    sqlite3.exe .svn/wc.db "delete from work_queue"
  5. 回到SVN,执行cleanup

macOS

类似报错如下:

svn: E155009: Failed to run the WC DB work queue associated with 'kaifage.com/file/path'

macOS自带了sqlite,则直接在本地检出的根目录执行:

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

via: http://stackoverflow.com/questions/10128201/subversion-stuck-due-to-previous-operation-has-not-finished

Tags: