如何重命名SVN分支并更新现有沙箱中的引用? [英] How to rename an SVN branch and update references in an existing sandbox?
问题描述
我需要重命名SVN分支,所以我做了:
$ svn move https:// server / repos / myrepo / branches / oldbranch \ \
https:// server / repos / myrepo / branches / newbranch
到目前为止,很好-分支已重命名。 / p>
问题是,我们已经从该分支中检出了现有的沙箱,当我尝试更新时出现此错误:
$ svn更新
svn:目标路径'/ branches / oldbranch'不存在
一个不言自明的错误。快速搜索后,我认为我找到了解决方法:在分支重命名后重新定位SVN工作副本
问题是,当我尝试发出该命令时,出现另一个错误:
$ svn switch --relocate https :// server / repos / myrepo / branches / oldbranch \
https:// server / repos / myrepo / branches / newbranch
svn:重定位只能更改URL的存储库部分
据我所知,我正在使用-relocate
命令,方法与Sander Rijken相同。任何想法为什么我会收到此错误?
只需
svn切换工作副本中的https:// server / repos / myrepo / branches / newbranch
I needed to rename a SVN branch, so I did:
$ svn move https://server/repos/myrepo/branches/oldbranch \ https://server/repos/myrepo/branches/newbranch
So far, so good -- the branch has been renamed.
The trouble is, we have existing sandboxes checked out from this branch and when I try to update I get this error:
$ svn update svn: Target path '/branches/oldbranch' does not exist
A fairly self-explanatory error. After a quick search I thought I had found the solution: Relocating SVN working copy following branch rename
The trouble is, that when I try to issue that command I get another error:
$ svn switch --relocate https://server/repos/myrepo/branches/oldbranch \ https://server/repos/myrepo/branches/newbranch svn: Relocate can only change the repository part of an URL
As far as I can see, I am using the --relocate
command the same way as Sander Rijken. Any ideas why I get this error?
Just do
svn switch https://server/repos/myrepo/branches/newbranch
from within your working copy.
这篇关于如何重命名SVN分支并更新现有沙箱中的引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!