Reputation: 5073
I have the following situation in my repositorium:
/ b1
----
\ b2
b1, b2
means branch1 and branch2 respectively.
I would like make some changes to branch and I would like to apply this changes to b2 as well. What is the best (and recommended way) to do it?
Upvotes: 0
Views: 58
Reputation: 6044
It depends, there's two ways:
You can merge one branch into the other. But that means basically carrying over all changes to the other branch. You might not want that.
More likely what you need: You simply copy the selected changesets from one branch to the other. Checkout the branch which is missing the changes and then graft them:
hg graft --rev XXX
You can give the revision argument several times.
Upvotes: 1