Eclipse之SVN错误归纳

本文属总结,资料来源如下:

  (1)http://hi.baidu.com/guangwwen/blog/item/9e9b9be86ee1a324b90e2dec.html

  (2)http://libeey.blogbus.com/logs/115389119.html

  (3)http://www.blogjava.net/coderdream/archive/2008/05/27/203115.html

 

一、

  出错操作:在eclipse里面更新文件

  出错:

       Path is not a working copy directory  svn: 'F:\Project\myproject\bin' is not a working copy directory

  解决方法:在此目录上一层目录的.svn文件夹下,打开entries,删除<entry name="bin" kind="dir"/>

       意即:根据错误提示在项目根目录下的entries文件中找到报错的目录,将其删除并保存!(注意一定要备份这个文件,以免出错!)

 

二、

  出错操作:在eclipse里面更新文件

  出错:

       Attempted to lock an already-locked dir   
       svn: Working copy 'E:\integration\com.svn.practise' locked

  解决方法:执行“清除”操作后,问题解决

  原因说明:很多操作,例如中断提交,都会进入这种工作拷贝的锁定状态。

 

三、

  出错操作:从SVN上面更新代码

  出错:

       Working copy not locked; this is probably a bug, please report

       svn: Directory 'G:\workspace\topicOntologyBackup\WebRoot\WEB-INF\classes\com\.svn' containing working copy admin area is missing

  解决方法:打开Eclipse中的 Project->Properties->Java Build Path 菜单,在右侧面板中的"Source"选项卡,在Excluded中加入"**/.svn/**"。也就是把.svn文件夹从编译路径中排除,这样就不会出现上面的问题了

  具体方法参考:(1) http://blog.csdn.net/zgmzyr/article/details/5551884 (此方法自己没法用到,因为无‘Excluded’这个玩意儿

         (2) http://myswirl.blog.163.com/blog/static/51318642200822071249905/

         (3) http://blog.csdn.net/programpoet/article/details/5070927

  事实上,上面的这三个方法我都没有用到。我就是Team—>清理,然后再 ‘更新’ ,它就出现别的错误(本文中的第一项错误或者第二项错误),按照相应的方法解决即可。

 

四、

  出错操作:向SVN提交代码

  出错:RA layer request failed
     svn: Commit failed (details follow):
     svn: applying log message to /svn/repos_android_groupshare/!svn/wbl/a8274bef-0b8b-de4b-9ffc-22e83a6a1e36/47: /svn/repos_android_groupshare/!svn/wbl/a8274bef-0b8b-de4b-9ffc-22e83a6a1e36/47: 500 (status)  -> Could not execute PROPPATCH.  (http://***.***.***.***)

  解决方法:提交代码时,添加描述不要加回车

posted @ 2012-05-29 20:44  Binary-Stream  阅读(385)  评论(0)    收藏  举报