SVN 报错“Previous operation has not finished; run ‘cleanup‘ if it was interrupted”

解决方法:清空svn的队列

1. 内嵌数据库一般是用sqlite进行轻量级管理的。( 下载这一款 sqlite-shell-win32-x86: sqlite3.exe,window下二进制的;下载地址:http://www.sqlite.org/download.html)

SVN 报错“Previous operation has not finished; run ‘cleanup‘ if it was interrupted”

2. 找到你项目的.svn文件,查看是否存在wc.db

SVN 报错“Previous operation has not finished; run ‘cleanup‘ if it was interrupted”

3. 为了方便命令行执行,将sqlite3.exe放到svn 项目的主目录下,和.svn目录同级下。

SVN 报错“Previous operation has not finished; run ‘cleanup‘ if it was interrupted”
找到本地存放svn项目的目录,将sqlite3.exe复制到该项目根目录下(与.svn目录同级)
可能.svn在项目中这个文件被隐藏了,直接复制sqlite3.exe进svn项目即可。

4. 启动cmd执行sqlite3 .svn/wc.db “select * from work_queue” 可能会看到很多记录

SVN 报错“Previous operation has not finished; run ‘cleanup‘ if it was interrupted”

5. 执行 sqlite3 .svn/wc.db “delete from work_queue”. 把队列清空。
6. 执行 sqlite3 .svn/wc.db “select * from work_queue”. 确认一下是否已经清空队列,发现已经没有记录显示,说明已经清空了。
7. 最后再试一下,看是否可以 clean up了。果然成功了。

SVN 报错“Previous operation has not finished; run ‘cleanup‘ if it was interrupted”