Subversion branch reintegration

后端 未结 10 2055
予麋鹿
予麋鹿 2020-12-02 11:55

When a branch is reintegrated to the trunk, is that branch effectively dead?

Can you make modifications to the branch after the reintegration and merge those back

10条回答
  •  半阙折子戏
    2020-12-02 12:31

    After you reintegrate from a branch into the trunk, you should do one of two things:

    • Delete your branch. This is the easiest, but it makes it harder to see the branch's history.

    • Tell your branch not to merge the reintegrate commit. If you reintegrate to the trunk, and commit it as revision X, you can run this command on your branch: svn merge --record-only -c X url-to-trunk. However, you shouldn't do this if you made any changes as part of the commit, other than the merge itself. Any other changes will never make it back into your branch.

提交回复
热议问题