SVN Switch 与 Eclipse 中的重定位
我的问题可以声称是一个扩展/类似于此处发布的问题。
基本上,我需要使用 Eclipse 插件 Subclipse 来完成相同的功能。 Subclipse 具有“切换分支/标签/修订”功能,但是,这是有限的,因为它将新 url 视为存储库并尝试比较它们。我只想更改网址。
任何想法!
My question can be claimed to be an extension/similar to the question posted here.
basically, I need to do the same functionality using Eclipse plugin Subclipse. Subclipse has a functionality to "Switch branch/tag/revision", however, this is limited as it treats the new url as a repository and tries to compare them. I only wish to change the URL.
any ideas!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
从 SVN 存储库探索 角度,右键单击您的项目存储库,然后从上下文菜单中选择重新定位..:
它将弹出一个确认窗口,向您显示将受到搬迁影响的活动项目。
From SVN Repository Exploring perspective right click on your project repository and choose Relocate.. from contextual menu:
It will bring up a confirmation windows showing you active projects which will be affected by relocation.
在较新版本的 Eclipse/Subversive(没有重新定位选项)中,您只需单击位置属性并更改 URL。它会警告您“附加的项目将被重新定位,因为存储库根 URL 与之前输入的 URL 不同”。这就是你想要的!
In more recent versions of Eclipse/Subversive (which don't have the Relocate option) you can simply click Location Properties instead and change the URL. It will warn you that "The attached projects will be relocated because the repository root URL differs from the previously entered one." This is what you want!
我在 Eclipse Luna 4.4.2 64 位版本上遇到了类似的问题。最初,我在命令行上重新定位了项目,但 Eclipse 无法识别重新定位更改。或者,我尝试删除并重新导入项目,但遗憾的是这种方法也未能成功。然后就这样整理了;
进行此更改后,Eclipse 不再出现此类错误,我能够在名称右侧看到每个项目的新根地址
I had the similar issue on Eclipse Luna 4.4.2 64 bit version. Initially I've relocated the project on the command line and Eclipse failed to recognize the relocation change. Alternatively I've tried to delete and re-import the projects, but sadly this approach failed to work out as well. Then sorted it out this way;
After this alteration Eclipse stopped giving such errors and I was able to see the new root address of each project on the right side of the name
我发现,如果与您尝试重新定位的 SVN 相关的项目在 Eclipse 中打开,则操作会失败,并在“SVN 控制台”中出现以下错误:
解决方案是关闭所有项目(Project Explorer ->右键单击该项目 -> 关闭项目),然后才在 SVN 窗口中进行 URL 重新定位(SVN 存储库窗口 -> 右键单击旧 SVN 的 URL -> 重新定位)。
请注意,以下屏幕上的“将重新定位的项目:”框为空。之前它显示了 Eclipse IDE 中所有打开的项目。
这是他们让我成功的唯一方法。
使用 Eclipse Kepler Service Release 2 和 Subclipse 1.10.10。
I found that if the projects that are related with the SVN you are trying to relocate are open in Eclipse, the operation fails with the following error in the 'SVN Console':
The solution was to close all the projects (Project Explorer -> right click on the project -> Close Project) and only after that, do the URL relocation in the SVN window (SVN Repositories window -> right click on the URL of the old SVN -> Relocate).
Notice that that the box 'Projects that will be relocated:' on the following screen is empty. Before it showed all the open projects in Eclipse IDE.
This was they only way I got it to succeed.
Using Eclipse Kepler Service Release 2, with Subclipse 1.10.10.