Reputation: 21726
I have 2 branches in my Mercurial repository. 'default' and 'other'
default branch A - B - C - D
other branch E - F
I need to move B changeset to other branch. So it will look like this:
default branch A - C - D
other branch E - F - B
Is it possible?
Thanks in advance!
Upvotes: 1
Views: 346
Reputation: 2682
The following solution doesn't require enabling any extensions. It does assume the existence of the patch
utility, though.
On default:
$ hg diff -c B > diff.out
$ hg backout --merge -r B
$ hg merge
$ hg ci
On other branch:
$ patch -p1 < diff.out
$ hg ci
Upvotes: 1
Reputation: 97280
Graft-based solution
hg help graft
) B to target branchRebase-based solution
other
branchdefault
Upvotes: 2