开发者

Subversion merging, tree merge

开发者 https://www.devze.com 2022-12-31 18:34 出处:网络
I need to merge changes from a branch back into trunk but want to continue work on the existing branch.

I need to merge changes from a branch back into trunk but want to continue work on the existing branch.

I was going to use a re-integrate merge but realised this is not suitable as I will need to recreate my branch etc which for a variety of reasons is not desirable.

What I really want to do is merge the current revisions in the branch down to head and then keep people working on their current working copies.

So my question is , can tree merge be used to solve thi开发者_运维问答s or do I have to reintegrate and recreate.


You can merge the branch to the trunk and keep on working in the branch, without recreating the branch - that's not an issue.

For your own convenience, you should include the revision range of the merge operation in the commit message (during commit to trunk). That way it will be easy to perform another merge operation in the future, starting from where you ended with this merge.


As mentioned by Vicky, merging from a branch to trunk doesn't affect the branch, and people can continue to working in that branch. There's one caveat though: repeatedly merging from one branch to trunk used to be awkward in Subversion prior to version 1.5 -- manually noting down the revisions already merged, and making sure not to include those again.

Since version 1.5 Subversion has basic 'merge tracking' functionality. See SVN book: Advanced Merging for documentation on more advanced merge topics.


Merging changes from the branch to the trunk does not affect the branch at all. So you can carry on working in it afterwards with no problem.

You will need a working copy of the trunk, though, to perform the merge in.

0

精彩评论

暂无评论...
验证码 换一张
取 消