mac os下svn无法cleanup的解决办法

因为在使用命令行进行项目更新时,按了control+c中断了正在进行更新的项目,就出现了svn无法再次提交和更新的问题,在svn的根目录下运行:
svn cleanup
也不行.会出现下边的错误提示:
svn: E155037: Previous operation has not finished; run 'cleanup' if it was interrupted
有人说再checkout一份出来.因为项目很大,如果再checkout一份出来差不多要一个多小时.最好的办法还是修复这个错误.
在网上找了很多地方,最后找到了正常的解决办法.

http://www.anujvarma.com/svn-cleanup-failedprevious-operation-has-not-finished-run-cleanup-if-it-was-interrupted/

Summary of fix from above link (Thanks to Anuj Varma)

  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.)

你可能感兴趣的:(软件设计方法)