svn“Previous operation has not finished; run 'cleanup' if it was interrupted
来源:互联网 发布:java运行库安装 编辑:程序博客网 时间:2024/06/03 17:59
亲测十分有效!!!!
今天碰到了个郁闷的问题,svn执行clean up命令时报错“Previous operation has not finished; run 'cleanup' if it was interrupted”。无论你到那个父层次的目录执行“clean up “,都是报一样的错。执行cleanup时候,提示要cleanup。看来是进入死循环了。
可能是频繁做了一些改名,文件打开的时候更新或者提交操作,导致svn罢工了。这个也该算是svn的bug吧。类似的情况,其实之前也碰到过。之前都是图省事,把整个svn checkout的主目录都删掉,重新checkout来解决的。但是随着项目的深入开展,要更新的文件越来越多。这个问题迟早要解决的,试试看吧。问题的关键看来需要找到死锁的地方,解锁才行。网上查了下资料。Svn的operation是存放在“work queue’“里的。而“work queue’是在内嵌数据库wc.db的work_queue表中的。看看work_queue表中放了些什么,再做处理。
1. 内嵌数据库一般是用sqlite进行轻量级管理的。sqlite-shell-win32-x86-3081101.zip
2. 为了方便命令行执行,将sqlite3.exe放到svn 项目的主目录下,和.svn目录同级下。
3. 执行 sqlite3 .svn/wc.db "select * from work_queue".看到有4条记录。就是刚才我执行的一些操作。
226539|(sync-file-flags 93目录名 文件名)
226540|(file-remove 21 .svn/tmp/svn-7B43C232)
226541|(sync-file-flags 目录名 文件名)
226542|(file-remove 21 .svn/tmp/svn-7B48224E)
4. 执行 sqlite3 .svn/wc.db "delete from work_queue". 把队列清空。
5. 执行 sqlite3 .svn/wc.db "select * from work_queue". 确认一下是否已经清空队列,发现已经没有记录显示,说明已经清空了。
6. 最后再试一下,看是否可以 clean up了。果然成功了。
- 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
- 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
- java简单发邮件
- 解决grub问题
- AVL树,伸展树,B树的一些概念
- Urho3D简介
- opencv学习(十六)之颜色空间转换cvtColor()
- svn“Previous operation has not finished; run 'cleanup' if it was interrupted
- OpenGL(二十三) 各向异性纹理过滤
- laravel的修改器和访问器
- HDU2095find your present (2)
- 【C#】常用的字符串方法
- JPA 笔记
- 数据结构与算法笔记 lesson 14 循环队列
- iOS 环信集成 实现单聊
- A Knight's Journey(深度搜索)