Reputation: 501
If somebody has merged branch B into branch A, but meant to merge A into B (so that the commit would be on branch B), is there a method I could use to get that merge (and all of it's descendents) into branch B? Besides redoing the merge, which was a considerable amount of work.
Upvotes: 1
Views: 50
Reputation: 2300
Assuming that you’ve just committed the merge, or if not, that the merge changeset 1. has no children and 2. is the parent of your working directory, then:
hg branch B --force
hg commit --amend
Upvotes: 0
Reputation: 1831
The following approach should solve your issue, but is not really 'clean'.
hg revert --all -r OLD_MERGE_CHANGESET
Upvotes: 1