使用 Subclipse 将 Eclipse 项目重新连接到 SVN
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4215464/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Reconnect Eclipse Project to SVN with Subclipse
提问by Cerin
I've been using Subclipse to manage SVN projects in Eclipse 3.4.2. However, while installing a buggy plugin, Eclipse became so sluggishly unusable that I had to kill the process and restart. Unfortunately, even though I removed the buggy plugin, this appears to have destroyed Subclipse's links to all my SVN projects. The projects themselves are still there, but the "Team" context menu only shows "Apply Patch", and no SVN icon overlays are being displayed. Is there anyway to fix this, or do I have to delete and recreate all my projects?
我一直在使用 Subclipse 来管理 Eclipse 3.4.2 中的 SVN 项目。然而,在安装一个有问题的插件时,Eclipse 变得非常缓慢无法使用,我不得不终止进程并重新启动。不幸的是,即使我删除了有问题的插件,这似乎也破坏了 Subclipse 到我所有 SVN 项目的链接。项目本身仍然存在,但“团队”上下文菜单只显示“应用补丁”,并且没有显示 SVN 图标覆盖。有没有办法解决这个问题,还是我必须删除并重新创建我的所有项目?
回答by Csaba_H
If your project has the .svn directories (only the Eclipse integration 'has gone missing') you could try Team -> Share Project. In my workspace, Subclipse noticed the presence of the SVN folders and created the appropriate connection.
如果您的项目有 .svn 目录(只有 Eclipse 集成“丢失了”),您可以尝试 Team -> Share Project。在我的工作区中,Subclipse 注意到 SVN 文件夹的存在并创建了适当的连接。
Edit:if you do not have the Share Project menu maybe the Eclipse installation 'got screwed'. If you do not have the Share Project menu in a newly created project and you do not see the SVN preferences under Preferences --> Team then you should re-install the Subclipse plugin.
编辑:如果您没有“共享项目”菜单,则 Eclipse 安装可能“搞砸了”。如果您在新创建的项目中没有 Share Project 菜单,并且在 Preferences --> Team 下没有看到 SVN 首选项,那么您应该重新安装 Subclipse 插件。
If you do not have the Share Project menu only the projects you previously shared with SVN, than you should delete and recreate all your projects (in the delete do not deletethe project contents and after the delete select File -> Import -> Existing projects into Workspace).
如果您没有共享项目菜单,只有您之前与 SVN 共享的项目,那么您应该删除并重新创建所有项目(在删除时不要删除项目内容,删除后选择文件 -> 导入 -> 现有项目进入工作区)。
回答by franta kocourek
I also had the same problem and there is a simple fix: Just rename your project ( right click on the project - Refactor - Rename) and it will re-link your project with svn. (Then you can rename it back).
我也遇到了同样的问题,有一个简单的解决方法:只需重命名您的项目(右键单击项目 - 重构 - 重命名),它就会将您的项目与 svn 重新链接。(然后您可以将其重命名)。
回答by Fabio F.
For me the only thing that worked was:
对我来说,唯一有效的是:
Copy the entire project.
Eclipse ask to synchronize.
Delete old project.
Rename copied project.