Subversion branch reintegration

后端 未结 10 2056
予麋鹿
予麋鹿 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:47

    Actually, you need to do a --record-only merge from trunk into your branch of the revision that was created by the --reintegrate commit:

    $ cd trunk
    $ svn merge --reintegrate ^my-branch 
    $ svn commit
    
    Committed revision 555. 
    # This revision is ^^^^ important
    

    And now you record it

    $ cd my-branch
    $ svn merge --record-only -c 555 ^trunk 
    $ svn commit
    

    You are happy to keep the branch now

    More information is in Chapter 4. Branching and Merging, Advanced Merging.

提交回复
热议问题