我正在尝试将工作副本文件夹从旧的专用 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/