SVN cleanup 失败

svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted


Usually, an svn cleanup fixes most issues with tortoise svn. However, I ran into an issue which caused me some grief.

The specific error I was seeing:

Previous operation has not finished; run 'cleanup' if it was interrupted

Solution: Somehow, svn is stuck on the previous operation. We need to remove this operation from it’s ‘work queue’.

The data is stored in the wc.db sqllite database in the offending folder.

1. Install sqllite (32 bit binary for windows) from here

2. sqlite .svn/wc.db “select * from work_queue”

The SELECT should show you your offending folder/file as part of the work queue. What you need to do is delete this item from the work queue.

     3. sqlite .svn/wc.db “delete from work_queue*

That’s it. Now, you can run cleanup again – and it should work. Or you can proceed directly to the task you were doing before being prompted to run cleanup (adding a new file etc.)

Also, svn.exe (a command line tool) is part of the Tortoise installer – but is unchecked for some reason. Just run the installer again, choose ‘modify’ and select the ‘command line tools’.


  1. 1 使用 TortoiseSVN

  2. 2 认证

  3. 3 导入数据到仓库Importing Data Into A Repository

    1. 31 仓库规划Repository Layout

    2. 32 Import

    3. 33 Special Files

    4. 34 Referenced Projects

  4. 4 取出工作副本Checking Out A Working Copy

  5. 5 获取状态信息Getting Status Information

    1. 51 覆盖图标Icon Overlays

    2. 52 资源管理器中TortoiseSVN的专栏

    3. 53 仓库状态Status Of The Repository

    4. 54 Viewing Diffs

  6. 6 更新工作副本Update Your Working Copy With Changes From Others

  7. 7 解决冲突Resolving Conflicts

  8. 8 把你的修改发送到仓库Sending Your Changes To The Repository

  9. 9 GetSet Information About FilesDirectories

  10. 10 Bug跟踪系统Integration with Bugtracking Systems

  11. 11 加入新文件和新目录Adding New Files And Directories

  12. 12 忽略文件和目录Ignoring Files And Directories

  13. 13 删除重命名移动Deleting Renaming And Moving

  14. 14 取消改变Undo Changes

  15. 15 修订日志窗口Revision Log Dialog

    1. 151 Invoking The Log Dialog

    2. 152 Getting Additional Information

    3. 153 Getting all log messages

    4. 154 Changing the log message and author

    5. 155 Statistical Information

  16. 16 分支标记Branching Tagging

    1. 161 Creating a Branch or Tag

    2. 162 To Checkout or to Switch

  17. 17 合并Merging

    1. 171 Merging a Range of Revisions

    2. 172 Merging Two Different Trees

  18. 18 创建和应用补丁Creating and Applying Patches

    1. 181 Creating a Patch File

    2. 182 Applying a Patch File

  19. 19 副本重定位Relocating a working copy

  20. 20 仓库浏览器The Repository Browser

  21. 21 TSVN的设置TortoiseSVNs Settings

    1. 211

    2. 212

    3. 213

    4. 214 合并设置

  22. 22 谁动了哪一行Who Changed Which Line

  23. 23 版本路线图Revision Graphs

  24. 24 最后Final Step


你可能感兴趣的:(SVN cleanup 失败)