我需要重命名一个SVN分支,所以我做了:
$ svn move https://server/repos/myrepo/branches/oldbranch \ https://server/repos/myrepo/branches/newbranch
到目前为止,这么好 - 分支已经重命名.
麻烦的是,我们已经从这个分支检出了现有的沙箱,当我尝试更新时,我得到了这个错误:
$ svn update svn: Target path '/branches/oldbranch' does not exist
一个相当不言自明的错误.经过快速搜索,我认为我找到了解决方案:在分支重命名后重新定位SVN工作副本
麻烦的是,当我尝试发出该命令时,我得到另一个错误:
$ 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
据我所知,我使用的--relocate
命令与Sander Rijken一样.有什么想法我得到这个错误?