尝试将 WC 重新定位到新存储库时出现问题

尝试将 WC 重新定位到新存储库时出现问题

问题描述:

我有几个从旧存储库中检出的工作副本.
旧存储库现在合并为一个新存储库,因此新存储库中的存储库名称和位置已更改.
现在我想将这些工作副本重新定位到新的存储库中的新位置.

I have several working copies that were checked out of old repositories.
The old repositories are now combined into a new repository, therefore the repository name and the locations inside the new repository have changed.
Now I want to relocate these working copies to their new locations into the new repository.

在使用 TortoiseSVN 执行 Relocate 时,我收到警告:

When doing a Relocate with TortoiseSVN, I get a warning:

您似乎正在尝试将您的工作副本重新定位到同一存储库中的不同路径.
来自:https://old-repository/oldpath/folder
至:https://new-repository/newpath/folder
仅当存储库的路径发生变化时才需要重新定位.
更改到存储库内部 的不同路径是通过切换操作完成的.

It seems you are trying to relocate your working copy to a different path inside the same repository.
From: https://old-repository/oldpath/folder
To: https://new-repository/newpath/folder
A relocate is only needed if the path to a repository has changed.
Changing to a different path inside a repository is done by a switch operation.

但它在同一个存储库中并不是不同的路径.它确实是一个新创建的存储库,具有不同的路径/名称.
当我忽略警告并继续重定位时,出现错误:

But it's not a different path inside the same repository. It really is a newly created repository with a different path / name.
When I ingore the warning and continue with the Relocate, I get an error:

位于https://new-repository/newpath/folder"的存储库具有 uuid'd3b83275-bf16-aa42-9467-f8a402003233',但WC有'30e22be1-af51-d84d-ad8f-d4e8545a4735'

The repository at 'https://new-repository/newpath/folder' has uuid 'd3b83275-bf16-aa42-9467-f8a402003233', but the WC has '30e22be1-af51-d84d-ad8f-d4e8545a4735'

我的错误在哪里?

您不能重新定位到新的存储库,您需要删除您的工作副本并进行干净的检出.Relocate 仅在存储库已原封不动地移动到新服务器或服务器具有新名称的情况下才能使用.

You can not do relocate to a new repository, you need to delete your working copy and do a clean checkout. Relocate can only be used if a repository has been moved unchanged to a new server or the server has got a new name.