Subclipse 无法提交:“不允许操作”
我安装了 SVN 并将其作为守护进程运行(Ubuntu 11.04)。我已经从命令行成功提交了存储库,但每当我尝试通过 subclipse 提交时,都会收到以下错误:
org.tigris.subversion.javahl.ClientException: Operation not permitted
svn: Can't remove '/home/dave/share/workspace/project/.svn/tmp/entries'
svn: Can't remove file '/home/dave/share/workspace/project/.svn/tmp/entries': Operation not permitted
org.tigris.subversion.javahl.ClientException: Operation not permitted
svn: Can't remove '/home/dave/share/workspace/project/.svn/tmp/entries'
svn: Can't remove file '/home/dave/share/workspace/project/.svn/tmp/entries': Operation not permitted
我尝试递归地取消设置粘性位,因为我看到这是不久前对线程的修复。我还在 Eclipse 中切换了 java >团队> SVN 从 JavaHL 到 SVNKit 但这也不起作用。有人以前经历过这种情况并且可以提供帮助吗?
I installed SVN and have it running as a daemon (Ubuntu 11.04). I've successfully commited the repo from command line but anytime I try to commit through subclipse I get the following error:
org.tigris.subversion.javahl.ClientException: Operation not permitted
svn: Can't remove '/home/dave/share/workspace/project/.svn/tmp/entries'
svn: Can't remove file '/home/dave/share/workspace/project/.svn/tmp/entries': Operation not permitted
org.tigris.subversion.javahl.ClientException: Operation not permitted
svn: Can't remove '/home/dave/share/workspace/project/.svn/tmp/entries'
svn: Can't remove file '/home/dave/share/workspace/project/.svn/tmp/entries': Operation not permitted
I tried recursively unsetting the sticky bit as I saw that was a fix on a thread a while back. I also switched my java within Eclipse > Team > SVN from JavaHL to SVNKit but that didn't work either. Anyone experience this before and can help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请检查以下情况
1) 是否命令行工具使用的版本比 SubClipse 使用的版本更新?
2) 在提交之前检查您是否已更新最新的主干状态
3) 您在 subclipse 中使用的用户/密码是否与命令工具中相同
Please chekc the following scenarios
1) Could it be the case that the command line tool uses a newer version, than the SubClipse does?
2) Check whether you have update the latest trunk state, before you commit
3) Are you using the same user/password in subclipse than in the command tool
仔细检查该文件是否未被使用。我用Process Explorer 来查找是否有任何程序可以处理我的文件,但如果您不介意的话,只需注销并再次登录(或重新启动)也可以作为一种暴力方法麻烦。
Double check that the file is not in use. I use Process Explorer to find if any programs have a handle on my files, but just logging out and in again (or restarting) also works as a brute-force approach if you don't mind the hassle.
这是 VirtualBox 共享文件夹的一个已知错误。除了将其移出共享文件夹之外,另一种解决方法是使用 git-svn (使用 sudo apt-get install git-svn 安装,它不附带标准版本)
git
) 将其自动克隆到 git 存储库中。安装 git-svn 后,您可以使用命令 git svn clone http://my-svn-repo local-folder 克隆 SVN 存储库,而不会出现此错误。
It's a known bug with VirtualBox shared folders. Apart from moving it outside the shared folder, another workaround it to use
git-svn
(install withsudo apt-get install git-svn
, it doesn't come with standardgit
) to clone it automatically into a git repo.Once
git-svn
is installed, you can use the commandgit svn clone http://my-svn-repo local-folder
to clone a SVN repo without this error.