2.7. Transplanting Individual Changes

Let’s say someone committed a bugfix to the default branch when in fact it should have been committed to the stable branch. How do you handle that? Well, in the target branch, you do this:

hg transplant --log REV

Where REV is the revision you want to transplant. The "--log" option is there to record the transplant information in the new commit.


It’s also possible to use the "-s REPOSITORY" option to transplant specific changes from another repository, as a specific alternative to pull.