SVN Switch Relocate - 不是存储库的根目录

标签 svn relocation

我正在尝试将工作副本文件夹从旧的专用 svn 服务器移动到新的 svn 服务器,其中包含子文件夹。使用以下重定位命令:

svn switch --relocate https://oldserver/svn/repos https://newserver/some/directory 

我得到:

svn: 'https://newserver/some/directory ' is not the root of the repository

哪个是正确的......但是,呃,无论如何我如何移动位置?

最佳答案

据我了解,您不能使用svn switch(带或不带--relocate)移动到新存储库。这样想:你的新存储库的 HEAD 修订版是 x,你的旧存储库的修订版是 y,那么 SVN 应该如何处理工作副本的基本修订版?

svn help switch 表示 --relocate 用于:

Rewrite working copy URL metadata to reflect a syntactic change only. This is used when repository's root URL changes (such as a scheme or hostname change) but your working copy still reflects the same directory within the same repository.

由于情况并非如此,恐怕您必须重新结账。

关于SVN Switch Relocate - 不是存储库的根目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2155248/

相关文章:

SVN 提交后 Hook 将消息发送回客户端

c# - SVN 和 Jenkins 在同一台机器上的 C# (ubuntu)

svn - 说明 SVN 中发生了多少代码重构的最佳方式

c++ - 如何解析 "relocation truncated to fit: R_X86_64_PC32 against undefined symbol ` xercesc_3_1::AbstractDOMParser::adoptDocument( )'"

svn - 是否可以在不更改工作副本的情况下撤消 SVN 提交?

svn 说冲突,但它真的合并了 (TortoiseSVN)

reverse-engineering - ELF搬迁逆向工程

c - 如何让 GCC 将所有符号导出到输出文件

x86 - 为什么 Elf64 不使用 Elf64_Rel 在 64 位 x86 上重定位?