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

本文介绍了一种解决SVN更新过程中因意外中断导致无法继续更新或提交的方法。通过安装SQLite并执行特定的SQL命令来清理工作队列,从而恢复正常的工作流程。
因为在使用命令行进行项目更新时,按了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.)

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值