svn: replace trunk with branch

后端 未结 8 1876
自闭症患者
自闭症患者 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:43

    I was just looking at this problem recently, and the solution that I was very happy with was performing

    svn merge --ignore-ancestry trunk-url branch-url

    on the working copy of my trunk.

    This does not try to apply changes in a historical manner (maintaining changes in the trunk). It simply "applies the diff" between the trunk and the branch. This will not create any conflicts for your users in the files that were not modified. You will however lose your Historical information from the branch, but that happens when you peform a merge anyway.

提交回复
热议问题