SVN 重定位 - UUID 错误 [英] SVN Relocate - UUID error

查看:34
本文介绍了SVN 重定位 - UUID 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将我的存储库复制到新服务器.

I've copied my repository to the new server.

与此同时,我对我的项目进行了一些更改,因此我想将提交提交到新服务器.

In the meantime, I've made some changes on my project, so I want to post a Commit to the new server.

我已将新服务器上的 svn UUID 更改为与旧服务器上的相同 - 1c8601b0-280a-384e-84ca-1910148bfb83.

I've changed the svn UUID on the new server to be the same as it is on the old server - 1c8601b0-280a-384e-84ca-1910148bfb83.

当我在项目文件夹中时,我设置了 TortoiseSVN >重新定位,然后我传递新服务器的 URL.然后我得到错误:

When I'm in the project folder, I set the TortoiseSVN > Relocate and I pass the new server's URL. THen I get the error:

我想知道为什么会出现此错误,因为考虑到 UUID (1c8601b0-280a-384e-84ca-1910148bfb83) 是相同的.

I'm wondering why I get this error because taking into account that the UUIDs (1c8601b0-280a-384e-84ca-1910148bfb83) are the same.

推荐答案

如果要强制 subversion 对新存储库使用与旧存储库相同的 UUID,则需要添加 --force-uuid 到您的 svnadmin load 命令.

If want you want to force subversion to use the same UUID for the new repository as the old repository, you need to add --force-uuid to your svnadmin load command.

或者你可以这样做:

  1. 创建包含所有内容的存储库存档.
  2. 将存档传输到另一台服务器
  3. 在目标服务器上提取存档
  4. 使用 -r 属性运行 svnadmin,其值具有提取存储库的路径.
  1. Create repository archive with all the contents.
  2. Transfer archive to another server
  3. Extract archive at the target server
  4. Run svnadmin using -r property with the value having path to extracted repository.

换句话说,只需复制存储库内容并将其传输到正确的目的地.

In other words, just copy repository contents and transfer it to the proper destination.

这篇关于SVN 重定位 - UUID 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆