svn: replace trunk with branch

后端 未结 8 1869
自闭症患者
自闭症患者 2020-12-07 07:02

What is the best way to make one of the branches of a subversion repository the new trunk?

There has been a major rewrite for the entire system: t

8条回答
  •  無奈伤痛
    2020-12-07 07:48

    It is a really weird/unusual configuration in SVN, even I think it is far from being a "good practice" at all, anyway, I guess you could do something like:

    • Checkout all the sourcetree (svn co therootsourcetree)
    • Remove the trunk (svn rm trunk)
    • Copy the branch to the trunk (svn cp branches/thebranch /trunk)
    • Remove the branch (svn rm branches/thebranch)
    • Commit the changes

    Good luck

提交回复
热议问题