Cherry picking in mercurial

Quick side note today. I recently had managed to check a bunch of changes into the development branch that were ment to go in a release branch. If i could merge the develop into the release branch, that would have been an easy fix, but in this case new development is going on in that branch that cannot be put into the release branch.

Mercurial graft to the rescue.

In my case i had a single revision that i wanted to cherry pick from the development branch into my release branch.


hg up release-x.y.z
hg graft 12345

March 28, 2013