SVN cleanup操作反复失败解决办法
2016-12-12 14:53
351 查看
今天在更新项目的时候遇到一个问题,按惯例要cleanup才能重新更新。但是很不幸,在cleanup的时候又遇到了问题!
要更新先要cleanup,但是cleanup的失败信息又叫我cleanup……这是一个死循环!本着“内事不决问百度,外事不决问Google”的原则,终于找到一个解决办法,参见这里:http://www.anujvarma.com/svn-cleanup-failedprevious-operation-has-not-finished-run-cleanup-if-it-was-interrupted/
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’.
感觉这是一个设计上的缺陷:使用工作队列来保存数据,后一个操作依赖于前一个操作的结果,一旦失败就要使用cleanup操作。但是,当cleanup操作失败的时候这个机制就陷入了死循环。解决办法就从它的数据库中直接删除工作队列中的数据,注意是sqlite数据库。
由于正在做Android开发,SDK中已经自带了sqlite3.exe工具,因此使用起来很方便。到项目的.svn目录下找到wc.db文件,使用sqlite3打开它,执行以下命令:
完毕后关闭数据库,重新打开项目,即可恢复正常操作。
本文出自 “飞翔的猫咪” 博客,请务必保留此出处http://flyingcat2013.blog.51cto.com/7061638/1580692
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’.
感觉这是一个设计上的缺陷:使用工作队列来保存数据,后一个操作依赖于前一个操作的结果,一旦失败就要使用cleanup操作。但是,当cleanup操作失败的时候这个机制就陷入了死循环。解决办法就从它的数据库中直接删除工作队列中的数据,注意是sqlite数据库。
由于正在做Android开发,SDK中已经自带了sqlite3.exe工具,因此使用起来很方便。到项目的.svn目录下找到wc.db文件,使用sqlite3打开它,执行以下命令:
本文出自 “飞翔的猫咪” 博客,请务必保留此出处http://flyingcat2013.blog.51cto.com/7061638/1580692
相关文章推荐
- SVN cleanup操作反复失败解决办法
- SVN cleanup 反复失败解决办法
- svn执行clean up失败后提示 cleanup failed–previous operation has not finished; run cleanup .....解决办法
- SVN cleanup操作反复失败解决办法
- SVN Clean up 失败和SVN is already locked情况解决
- svn cleanup 失败的解决方法
- SVN之下载项目一半下载中断了转圈圈无响应解决办法cleanup failed to process the following path
- svn cleanup failed 解决办法
- svn cleanup failed–previous operation has not finished; cleanup 死循环解决办法
- SVN clean up失败或是lock等问题解决方案
- svn clean up 异常的解决办法
- svn clean up失败解决
- svn clean up失败解决
- 【SVN】SVN错误[ locked; try performing 'cleanup']的解决办法
- svn报错cleanup failed–previous operation has not finished; run cleanup if it was interrupted的解决办法
- SVN cleanup 失败的解决方法
- SVN Clean Up失败后如何解决
- 解决svn clean up失败后还提示需要 clean up
- Previous operation has not finished,SVN cleanup出错解决办法
- svn clean up 失败解决方法