用idea开发项目,更新svn有时莫名其妙的出现
Error:Error performing cleanup for 'D:\SourceProject\XXXX': svn: E155004: There are unfinished work items in 'D:\SourceProject\pay2.0'; run 'svn cleanup' first.
解决办法:
1.官网下载sqllite3 https://www.sqlite.org/download.html,我是windows10,下载的是sqlite-tools-win32-x86-3240000.zip(1.64 MiB) 。
2.解压。
3.然后,将上面'D:\SourceProject\XXXX'目录下的.svn里的wc.db拷贝过来。
4.cmd命令
sqlite3 wc.db
**执行:select * from work_queue; //查看work_queue中保存的工作队列
**执行:delete from work_queue;
5.将wc.db放回原处。idea里再执行svn的Update Directory等命令。这时,还可能遇到一种提示
Cleanup failed to process the following paths: D:\SourceProject\XXXX 'D:\SourceProject\XXXX...' is already locked。
需要执行一个清除数据库中的wc_lock的表的操作。
**执行:select * from wc_lock;
**执行:delete from wc_lock;
再将wc.db放回原处,idea更新svn就ok啦。