SVN开关重定位-不是存储库的根 [英] SVN Switch Relocate - is not the root of the repository

查看:2215
本文介绍了SVN开关重定位-不是存储库的根的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to move a working copy folder from it's old dedicated svn server, to a new svn server where it is contained within a sub-folder. Using the following relocate command:

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

我得到:

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

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

Which is correct ..... but, err, how do I move the location regardless?

推荐答案

据我了解,您不能使用svn switch(带有或不带有--relocate)移动到新存储库.这样考虑:新存储库的HEAD修订版是x,旧存储库的修订版是y,那么SVN应该与工作副本的基础修订版有什么关系?

As far as I understand, you can't use svn switch (with or without --relocate) to move to a new repository. Think about it this way: your new repository's HEAD revision is x, your old repository's revision is y, so what is SVN supposed to do with the working copy's base revision?

svn help switch表示--relocate用于:

重写工作副本URL元数据以仅反映语法更改.当存储库的根URL更改(例如方案或主机名更改)但工作副本仍反映相同时,将使用此副本.相同存储库中的目录.

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.

既然不是这种情况,恐怕您将不得不重新进行结帐.

Since this is not the case, I'm afraid you'll have to perform a fresh checkout.

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

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