[PATCH 2 of 2] rebase: add --cherrypick to cherrypick single revisions

Colin Caughie c.caughie at indigovision.com
Mon Jan 4 04:10:48 CST 2010


> On Thu, 2009-12-31 at 02:50 +0100, Stefano Tortarolo wrote:
> > # HG changeset patch
> > # User Stefano Tortarolo <stefano.tortarolo at gmail.com>
> > # Date 1262222630 -3600
> > # Node ID 4643de06fb4d42ea22055d42ce9ff46762f30555
> > # Parent  fcedd4d4282f33be5f86cd3a311bf937fe07528e
> > rebase: add --cherrypick to cherrypick single revisions
> >
> > Using the idea behind --detach, rebase can now 'copy' single
> revisions from
> > a branch to another one.
> > Basically, it ignores every changeset up to the requested one, by
> means of null
> > merges, and then rebases just the specified changeset.
>
> Nice. This is different enough from normal rebasing that it probably
> wants a separate command under the same extension. Something like:
>
> hg port --dest stable A B C:D
>
> Note that this is similar enough to transplant that it should
> probably
> do transplant's trick of recording the source revision in extra.

This sounds useful, but I'm curious; how is this _different_ from what transplant does? Is the idea just to bring everything under the one extension, or is there a difference in behaviour?

Colin



Latest News at: http://www.indigovision.com/news2009.php


More information about the Mercurial-devel mailing list