AnkhSVN:将项目移动到另一个存储库

发布于 2024-08-24 05:08:38 字数 759 浏览 12 评论 0原文

我的任务是将这个 VS 解决方案和项目移动到另一个 SVN 服务器。我正在使用 Visual Studio 2010 RC1 和 AnkhSVN 2.1.7819...

  • 目前,这些文件都绑定到位于 C:\Repositories\foo 的存储库。
  • 我想将其移至 http://someSite/svn/foo

我发现最明显的方法是 Pending Changes - Source Files 窗口(出现属于 AnkhSVN)。它似乎允许您更改正在使用的存储库。

替代文本

替代文本

我收到此错误消息:

存储库 UUID“152c39db-5799-4234-85f2-074004a6fcad”与预期的 UUID“6c83444d-7f93-d64a-b0a0-23283495cf17”不匹配

问题

  • 如何在 AnkhSVN 中避免出现此消息?
  • 是否有更好的解决方案将源移至新目标上的存储库?
  • 如何让 Ankh 永远“忘记”位于 C:\Repositories\ 的存储库?

My task is to move this VS solution and projects to another SVN server. I'm working with Visual Studio 2010 RC1 and AnkhSVN 2.1.7819....

  • Currently the files are all bound to a repo at C:\Repositories\foo.
  • I'd like to move it to http://someSite/svn/foo

The most obvious way, I found, was the Pending Changes - Source Files window (which appears to belong to AnkhSVN). It appears to allow you to change the repository that you're working with.

alt text

alt text

I'm presented with this error message:

Repository UUID '152c39db-5799-4234-85f2-074004a6fcad' doesn't match expected UUID '6c83444d-7f93-d64a-b0a0-23283495cf17'

Questions

  • How can I avoid this message in AnkhSVN?
  • Are there better solutions for moving the source into a repo on the new target?
  • How can I get Ankh to 'forget' that repo at C:\Repositories\ forever?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

壹場煙雨 2024-08-31 05:08:38

此对话框在同一存储库中的不同位置之间执行切换(并且允许您在存储库移动时更改 URL)。

在您的情况下,您想切换到不共享历史记录的完全不同的存储库。 (好吧,也许您想保留历史记录,但您没有要求)。

要将数据复制到不同的存储库,您可以执行导出,然后使用“将解决方案添加到 Subversion 向导”。

TortoiseSVN 具有就地导出功能,可以从工作副本中删除所有 .svn 文件夹。你也可以用它。 (确保在删除 .svn 目录后刷新 AnkhSVN 状态)

This dialog performs a switch between different locations in the same repository (and allows you to change the URL if the repository moved).

In your case you want to switch to a completely different repository that doesn't share history. (Well maybe you want to keep the history but you didn't ask).

To copy the data to a different repository you can perform an export and then use the 'Add Solution to Subversion wizard'.

TortoiseSVN has an in-place export function that deletes all the .svn folders from your working copy. You could use that too. (Make sure you refresh the AnkhSVN status after removing the .svn directories)

忱杏 2024-08-31 05:08:38

如果您想保留历史记录,请参阅

不过,请务必禁用旧的,这样您就不会同时提交两者(如果发生这种情况,那就非常糟糕了)。

If you want to keep history, see Migrating Repository Data Elsewhere in the excellent svnbook. It also describes a way to keep the repository UUIDs the same, so you can just relocate from the old one to the new one.

Be sure to disable the old one though so you don't get commits to both at the same time (very bad thing if that happens).

等风来 2024-08-31 05:08:38

这是一个老问题,但没有一个答案与现在提出的问题有任何关系

假设您创建了新的存储库(如果不查看其他答案)

在“文件”菜单中,在“更改”下有一个“Subversion”项 连接

此处您需要做的第一件事是断开解决方案和所有项目与 SVN 的

,突出显示解决方案和项目,然后查看屏幕下半部分“SCC 绑定路径”旁边的内容一个 [...] 按钮,单击它,您可以更改存储库,

将其更改为正确的存储库,然后重新连接您的项目和解决方案,您现在应该使用新的存储库

,这是在 TortoiseSVN 中使用“重新定位”命令的更简单方法,这将更新解决方案中的 SVN 文件,然后由 Ankh 拾取,但使用相同的“更改源代码控制”屏幕进行双重检查

This is an old question but none of the answers are anything to do with the question asked

now Assuming you have your new repository created(if not look at the other answers)

In the File menu is an "Subversion" item under this a "Change Source Control" option

in here the first thing you need to do is Disconnect your solution and all projects from SVN

once you have disconnected, highlight the solution and the projects and look at the bottom half of the screen next to "SCC binding path" is a [...] button click it and your can change your repository

change it to the correct repo and then reconnect your project and solution and you should now be using your new repo

the easier method in to user the Relocate command in TortoiseSVN, this will update the SVN files in the solution and will then be picked up by Ankh though use the same "Change Source Control" screen to double check

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