SVN Switch 与 Eclipse 中的重定位

发布于 2024-11-28 13:15:58 字数 264 浏览 1 评论 0原文

我的问题可以声称是一个扩展/类似于此处发布的问题

基本上,我需要使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

孤檠 2024-12-05 13:15:58

SVN 存储库探索 角度,右键单击您的项目存储库,然后从上下文菜单中选择重新定位..

在此处输入图像描述

它将弹出一个确认窗口,向您显示将受到搬迁影响的活动项目。

From SVN Repository Exploring perspective right click on your project repository and choose Relocate.. from contextual menu:

enter image description here

It will bring up a confirmation windows showing you active projects which will be affected by relocation.

自由如风 2024-12-05 13:15:58

在较新版本的 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!

Screenshot of contextual menu

梦罢 2024-12-05 13:15:58

我在 Eclipse Luna 4.4.2 64 位版本上遇到了类似的问题。最初,我在命令行上重新定位了项目,但 Eclipse 无法识别重新定位更改。或者,我尝试删除并重新导入项目,但遗憾的是这种方法也未能成功。然后就这样整理了;

  1. 关闭所有项目,
  2. 打开 SVN Repository Exploring 透视图,
  3. 右键单击存储库>>位置属性,
  4. 在属性窗格中,我更改了 url,并在下面选择“使用存储库 URL 作为标签”,单击完成,
  5. 切换回 Java 透视图并重新打开项目。

进行此更改后,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;

  1. Closed all the projects,
  2. Opened the SVN Repository Exploring perspective,
  3. Right clicked on the repository >> Location properties,
  4. In the properties pane, I've changed the url and in the below I choose "Use the repository URL as the label" clicked on finish,
  5. Switched back to the Java perspective and reopened the projects.

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

凉薄对峙 2024-12-05 13:15:58

我发现,如果与您尝试重新定位的 SVN 相关的项目在 Eclipse 中打开,则操作会失败,并在“SVN 控制台”中出现以下错误:

switch --relocate http://old.scm.com/svn/APP http://new.scm.com/svn/APP .../webapp
    svn: E155019: Cannot relocate '...\webapp' as it is not the root of a working copy
    svn: E155019: Cannot relocate '...\webapp' as it is not the root of a working copy

解决方案是关闭所有项目(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':

switch --relocate http://old.scm.com/svn/APP http://new.scm.com/svn/APP .../webapp
    svn: E155019: Cannot relocate '...\webapp' as it is not the root of a working copy
    svn: E155019: Cannot relocate '...\webapp' as it is not the root of a working copy

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.

Relocate screen in Eclipse Kepler

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文