使用 Subclipse 将 Eclipse 项目重新连接到 SVN
我一直在 Eclipse 3.4.2 中使用 Subclipse 来管理 SVN 项目。然而,在安装有问题的插件时,Eclipse 变得非常缓慢而无法使用,我不得不终止该进程并重新启动。不幸的是,尽管我删除了这个有缺陷的插件,但这似乎已经破坏了 Subclipse 到我所有 SVN 项目的链接。项目本身仍然存在,但“团队”上下文菜单仅显示“应用补丁”,并且没有显示 SVN 图标覆盖。有没有办法解决这个问题,或者我是否必须删除并重新创建我的所有项目?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您的项目有 .svn 目录(只有 Eclipse 集成“丢失”),您可以尝试 Team ->分享项目。在我的工作区中,Subclipse 注意到 SVN 文件夹的存在并创建了适当的连接。
编辑:如果您没有“共享项目”菜单,则可能是 Eclipse 安装“被搞砸了”。如果您在新创建的项目中没有“共享项目”菜单,并且在“首选项”下看不到 SVN 首选项 -->那么您应该重新安装 Subclipse 插件。
如果您没有“共享项目”菜单,只有您之前与 SVN 共享的项目,那么您应该删除并重新创建所有项目(在删除不要删除项目内容中,删除后选择文件-> 导入 -> 现有项目到工作区)。
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.
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.
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 delete the project contents and after the delete select File -> Import -> Existing projects into Workspace).
我也遇到了同样的问题,有一个简单的解决方法:
只需重命名您的项目(右键单击项目 - 重构 - 重命名),它就会将您的项目与 svn 重新链接。 (然后您可以将其重命名回来)。
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).
对我来说唯一有效的是:
For me the only thing that worked was: