2007-6-16

本文介绍了一种在使用SVN进行工程更新时遇到的问题及解决方案。主要问题是由于Eclipse构建文件夹被添加到了版本库中,在构建过程中删除了包含版本控制元数据的文件夹,导致SVN无法找到相关信息而报错。文章提供了详细的解决步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

(直接转过来的,和我的问题一模一样)

关于SVN的一个小问题 前些天试图更新工程,结果出错,出现以下提示: update -r HEAD E:/SinoTrans Working copy not locked; this is probably a bug, please report svn: Working copy 'E:/SinoTrans/web/WEB-INF/classes/template' is missing or not locked

 

http://www.tigris.org找解决方法,有这么一段描述:

This message is coming straight out of the Subversion library, so technically it is Subversion asking you to report the problem to them. This error message is kind of their general error message when something really unexpected happens. In the case of Eclipse, the problem is almost always one specific thing. The problem is that your Eclipse build folder was versioned and added to your repository. What happens is that when Eclipse does a full build it will delete everything in this folder, including the ".svn" metadata folder. When Subversion cannot find this folder it issues the above error. The solution is to delete this folder from your repository, which you can do from the SVN Repositories view. Then try deleting the folder from your working copy and perforiming an update. You might need to checkout your project again. Once you have a valid project again, be sure to add the build folder to the svn:ignore property of its parent folder so that the problem does not happen again. If this is not your problem, then as best as you can try to figure out what might have led up to having this problem and report it on th Subversion users@subversion.tigris.org mailing list.

 

大意是重新部署工程时会将文件夹WEB-INF/classes下的内容全删了,包括".svn"这个文件夹,从面导致SVN找不到这个文件夹的信息,于是报错。 解决的方法是在SVN仓库内将classes下的内容清空,然后在确保本地工程已完全提交的情况下,将本地工程包括文件删除,再从SVN仓库中重新取出。 导致此问题的原因尚不明确,估计是往这个文件夹手动添加了文件。

 

posted on 2006-04-28 01:31 Java菜鸟飞 阅读(186) 评论(0) 编辑 收藏 引用 http://www.blogjava.net/rennycn/archive/2006/04/28/43687.html

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值