Graft-based solution
- Graft (
hg help graft
) B to target branch - Remove (histed extension) B from source branch (graft only make copy of changeset, without removing original)
Rebase-based solution
- Rebase B to
other
branch - Because rebase move also descendants of rebased changeset - rebase C back to
default