`

svn“Previous operation has not finished; run 'cleanup' if it was interrupted“报错的

 
阅读更多
今天碰到了个郁闷的问题,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: sqlite3.exe

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.exe 执行cleanup svn项目目录。因为默认安装的时候,这个命令行工具是不被安装的,所以需要启动安装程序,选择”修改“,选上”命令行工具“才行。估计这个命令的实际效果和上面一种方法是类似的。不过应该比图形界面的右键菜单的更强大些吧。有兴趣可以试试。 



顺便补充一下, sqlite是一个非常常用的嵌入式数据库,就是一个db文件。像手机qq等这些软件都会内置一个这样的数据库进行多条数据的管理。
分享到:
评论

相关推荐

    svn“Previous operation has not finished; run 'cleanup' if it was interrupted“报错

    NULL 博文链接:https://zzc1684.iteye.com/blog/2305849

    Previous operation has not finished; run 'cleanup' if it was interrupted

    1、把sqlite3.exe放在SVN项目.svn文件夹下,如果隐藏了请显示 2、在.svn目录下打开cnd 3、执行sqlite3 wc.db 4、执行.table 查看是否有work_queue表,没有关闭cmd重新执行2.3 ...8、在项目上右键svn refresh/cleanup

    sqlite3.exe工具...

    Previous operation has not finished; run 'cleanup' if it was interrupted

    sqlite3.exe

    Preivious operation has not finished; run 'cleanup' if it was interrupted Please execute the 'Cleanup' command 问题解决 sqlite3 .svn/wc.db "delete from work_queue

    svn无法执行clean up 清理

    svn执行clean up后出现提示:svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted,等无法清理的问题的处理办法,内含工具和使用文档。

    sqlite3,svn报错处理工具

    sqlite3.exe,在svn遇到cleanup failed–previous operation has not finished; run cleanup if it was interrupted时候使用的,具体看使用指南

    下载 sqlite3.exe

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

    sqlite-tools-win32-x86-3330000.zip

    问题描述:svn执行clean up命令时报错“Previous operation has not finished; run 'cleanup' if it was interrupted”。 无论你到那个父层次的目录执行“clean up “,都是报一样的错。执行cleanup时候,提示要...

    sqlite3.exe插件

    Previous operation has not finished; run 'cleanup' if it was interrupted.报错需要得到插件

    svn异常修复工具

    下面2类问题可以使用本工具修复 问题1:Svn: E155010: Pristine Text A31e85c8da93f9838bde24db70544f9089ed4359 Not Present 问题2:svn“Previous operation has not ... run 'cleanup' if it was interrupted

    SqlLite3.exe下载

    用来解决SVN报Previous operation has not finished; run 'cleanup' if it was interrupted错误问题

    Sqlite3.zip

    这个东西是用来解决SVN的bug的,svn报"Error: Previous operation has not finished; run 'cleanup' if it was interrupted"这个错时解决

    sqlite3.exe的下载

    run 'cleanup' if it was interrupted”可能是更新某个目录文件导致死循环了,Svn的operation是存放在“work queue’“里的。而“work queue’是在内嵌数据库wc.db的work_queue表中的。把wc.db里的东西删除就可以...

    sqlite3 工具

    SVN使用过程中有时候,人为中断update操作,造成SVN命令未执行完毕,进而无法进行cleanup操作。...执行cleanup一直提示“Previous operation has not finished; run 'cleanup' if it was interrupted

    sqlite-shell-win32-x86: sqlite3.exe

    run 'cleanup' if it was interrupted”。 解决此问题所需文件 2. 为了方便命令行执行,将sqlite3.exe放到svn 项目的主目录下,和.svn目录同级下。 3. 执行 sqlite3 .svn/wc.db "select * from work_queue".看到有4...

    sqlite3.zip

    包含sqlite3.def 和 sqlite3.dll、sqlite3.exe,svn执行update操作后出现:Error : Previous operation has not finished; run 'cleanup' if it was interrupted.

Global site tag (gtag.js) - Google Analytics