svn报错:“Previous operation has not finished; run 'cleanup' if it was interrupted“ 的解决方法

来源:互联网 发布:ros mac地址屏蔽 编辑:程序博客网 时间:2024/05/04 06:02

svn报错:“Previous operation has not finished; run 'cleanup' if it was interrupted“ 的解决方法

       今天改完代码提交时,提交接近完成但窗口还未关闭电脑蓝屏了。夏天来了,电脑比人还怕热啊~~~   心里咯噔一下,估计svn又会出一些莫名其妙的问题了。

果然,待电脑重启后开eclipse,文件还是新增状态,提交报错,提示需要执行clean up 。

       但svn执行clean up命令时报错“Previous operation has not finished; run 'cleanup' if it was interrupted”。 无论你到那个父层次的目录执行“clean up “,都是报一样的错。后将代码删除,想重新check out 都不行。

       此时测试还在催着交代码,真是屋漏偏逢连夜雨,越急越容易出错。

       后上网搜索,本地.svn\wc.db数据库文件里面存储了svn的operation,表名是work_queue。

       .db数据库文件可以用sqlite3打开。到网上下载sqlite3.exe,解压到D:\Offsite\.svn文件夹下,解压后的sqlite3.exe才475KB大小。

       1. 运行cmd,进入到D:\Offsite\.svn文件夹下,执行sqlite3 wc.db,打开数据库

          

           

        2. 执行.table 可以查看表名

           

 

        3. 执行delete from work_queue; 命令。

            

 

         4. 重试 clean up 操作,问题解决。

0 0
原创粉丝点击