svn“Previous operation has not finished; run 'cleanup' if it was interrupted“报错的暴力解决方法
2015-01-28 16:00
489 查看
今天在用SVN更新代码的时候,遇到svn“Previous
operation has not finished; run 'cleanup' if it was interrupted“ 这个问题,原因就是,同事提交代码后,我更新完后,发现有错误,原来是jar包他没有提交,我就删掉原来的jar包,替换成他升级的那个,结果就出现这个错误了,找了半天也没解决,错误域代码无关,就是提示你某个文件被svn锁死,上网查了很多方法,
照着他们说的:/article/2822037.html的部分内容如下:
1. 内嵌数据库一般是用sqlite进行轻量级管理的。网上可以下到sqlite-shell-win32-x86:
sqlite3.exe
2. 为了方便命令行执行,将sqlite3.exe放到svn 项目的主目录下,和.svn目录同级下。
3. 执行 sqlite3 .svn/wc.db "select * from work_queue".看到有4条记录。就是刚才我执行的一些操作。
但是我在这样执行的时候,没有发现.svn的文件,原来是隐藏了,执行后发现就一条记录,具体方式是,
进入到项目所在的盘符,windows +R,进入cmd模式,例如d:/项目名称/
不会的同学可以去查查怎么在命令行下进入项目所在的文件夹下,然后执行sqlite3 .svn/wc.db "select * from work_queue"
然后在执行
sqlite .svn/wc.db “delete from work_queue”. 把队列清空
接下来执行 sqlite .svn/wc.db “select * from work_queue”. 确认一下是否已经清空队列,发现已经没有记录显示,说明已经清空了。
最后再试一下,看是否可以 clean up了,基本到这就结束了
但是不尽人愿啊 work_queue里面就一条数据,也清空了,但是clean up的时候,居然还提示文件夹被锁着,刷新,更新,各种方法都试过了,解决不了
最后就进入.svn的文件夹下,找到wc.db
![](http://img.blog.csdn.net/20150128162937450?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxMjg3NTQ0Mg==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
最后只有打开它,如果没有工具,就下载一个SQlite工具,打开后,如图所示:
![](http://img.blog.csdn.net/20150128163220736?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxMjg3NTQ0Mg==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
两个箭头的表右键点击,选择empty那个选项,empty table main lock选项,就可以了
下面的那个表也是这样的执行方式,是不是很黄很暴力,
然后再重启Eclipse就ok了,我的问题就解决了。
第一次写blog 请多指教。
operation has not finished; run 'cleanup' if it was interrupted“ 这个问题,原因就是,同事提交代码后,我更新完后,发现有错误,原来是jar包他没有提交,我就删掉原来的jar包,替换成他升级的那个,结果就出现这个错误了,找了半天也没解决,错误域代码无关,就是提示你某个文件被svn锁死,上网查了很多方法,
照着他们说的:/article/2822037.html的部分内容如下:
1. 内嵌数据库一般是用sqlite进行轻量级管理的。网上可以下到sqlite-shell-win32-x86:
sqlite3.exe
2. 为了方便命令行执行,将sqlite3.exe放到svn 项目的主目录下,和.svn目录同级下。
3. 执行 sqlite3 .svn/wc.db "select * from work_queue".看到有4条记录。就是刚才我执行的一些操作。
但是我在这样执行的时候,没有发现.svn的文件,原来是隐藏了,执行后发现就一条记录,具体方式是,
进入到项目所在的盘符,windows +R,进入cmd模式,例如d:/项目名称/
不会的同学可以去查查怎么在命令行下进入项目所在的文件夹下,然后执行sqlite3 .svn/wc.db "select * from work_queue"
然后在执行
sqlite .svn/wc.db “delete from work_queue”. 把队列清空
接下来执行 sqlite .svn/wc.db “select * from work_queue”. 确认一下是否已经清空队列,发现已经没有记录显示,说明已经清空了。
最后再试一下,看是否可以 clean up了,基本到这就结束了
但是不尽人愿啊 work_queue里面就一条数据,也清空了,但是clean up的时候,居然还提示文件夹被锁着,刷新,更新,各种方法都试过了,解决不了
最后就进入.svn的文件夹下,找到wc.db
最后只有打开它,如果没有工具,就下载一个SQlite工具,打开后,如图所示:
两个箭头的表右键点击,选择empty那个选项,empty table main lock选项,就可以了
下面的那个表也是这样的执行方式,是不是很黄很暴力,
然后再重启Eclipse就ok了,我的问题就解决了。
第一次写blog 请多指教。
相关文章推荐
- svn“Previous operation has not finished; run 'cleanup' if it was interrupted“解决方法
- 解决linux上svn的SVN "Previous operation has not finished; run 'cleanup' if it was interrupted"
- SVN-previous operation has not finished run 'cleanup' if it was interrupted
- Eclipse 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
- Previous operation has not finished; run 'cleanup' if it was interrupted
- svn“Previous operation has not finished; run 'cleanup' if it was interrupted“报错的暴力解决方法
- 解决svn执行cleanup出现failed–previous operation has not finished; run cleanup if it was interrupted 的错误
- svn报错cleanup failed–previous operation has not finished; run cleanup if it was interrupted的解决办法
- svn报错:“Previous operation has not finished; run 'cleanup' if it was interrupted“ 的解决方法
- svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted
- [置顶] svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted 分类: 开
- svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted
- svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted
- svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted
- svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted
- svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted .
- svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted
- svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted