SVN更新异常

来源:互联网 发布:自助发稿源码 编辑:程序博客网 时间:2024/06/04 14:27

问题描述:在myeclipse中移动了将一个jar从一个文件夹移动到另一个文件,结果其他人在更新时,出现如下异常:

org.apache.subversion.javahl.ClientException: Problem running log

svn: Failed to run the WC DB work queue associated with 'E:\NewEclipse\BestLocal', work item 201 (file-remove tools-1.4.jar)
另一个程序正在使用此文件,进程无法访问。  
svn: Can't remove file 'E:\NewEclipse\BestLocal\itcast-tools-1.4.jar': 另一个程序正在使用此文件,进程无法访问。  


org.apache.subversion.javahl.ClientException: Problem running log
svn: Failed to run the WC DB work queue associated with 'E:\NewEclipse\BestLocal', work item 201 (file-remove tools-1.4.jar)
另一个程序正在使用此文件,进程无法访问。  

svn: Can't remove file 'E:\NewEclipse\BestLocal\itcast-tools-1.4.jar': 另一个程序正在使用此文件,进程无法访问。  


之后再次尝试更新出现:

org.apache.subversion.javahl.ClientException: Previous operation has not finished; run 'cleanup' if it was interrupted


org.apache.subversion.javahl.ClientException: Previous operation has not finished; run 'cleanup' if it was interrupted


解决方法:

      在本地,找到该项目的文件夹,发现被移动的文件在本地并没有被移动,手工移动那些文件, 然后项目右键->team->cleanup,然后。也就是说:假设本地项目为A,服务器上项目为B。


若B内的文件是被移动过,则A项目在更新前,也应该做相应的移动,SVN不会自动帮你移动的。  

          

解决过程:

找了大半天,没有直接说明怎么解决的。不过发现两个比较好的解释svn的网站

Subversion FAQ(常见问题解答):https://subversion.apache.org/faq.zh.html

TortoiseSVN FAQ:http://tortoisesvn.net/faq.zh.html#inuse


后来找到这篇文章:http://blog.sina.cn/dpool/blog/s/blog_9262dda20102uykx.html

准备照着上面做时,忽然发现项目根目录下的文件没有被移动,尝试移动他们,然后就解决了。


1 0
原创粉丝点击