Lee*_*ton 44 svn branch rename
我需要重命名一个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一样.有什么想法我得到这个错误?
khm*_*ise 53
做就是了
svn switch https://server/repos/myrepo/branches/newbranch
Run Code Online (Sandbox Code Playgroud)
从你的工作副本中.
要更改相对路径,您必须使用纯 svn switch
(无论如何switch --relocate
都已弃用),如svn help switch
第一种形式所写
switch URL[@PEGREV] [PATH]
更新工作副本以镜像存储库中的新 URL。Run Code Online (Sandbox Code Playgroud)This behavior is similar to 'svn update', and is the way to move a working copy to a branch or tag within the same repository.
即WC的根oldbranch
,也就是现在newbranch
,你必须使用
svn switch ^/branches/newbranch
归档时间: |
|
查看次数: |
48368 次 |
最近记录: |