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

Stefano Tortarolo stefano.tortarolo at gmail.com
Sat Jan 2 11:50:06 CST 2010


2009/12/31 Matt Mackall <mpm at selenic.com>:
> 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

Yes, my intention was to get some feedbacks and then propose a separate command.
Just one question: why 'port'?

> Note that this is similar enough to transplant that it should probably
> do transplant's trick of recording the source revision in extra.

Yes, if i'm not wrong rebase already does the same thing.

I'll resend an improved version asap.
Thanks Matt.

Stefano


More information about the Mercurial-devel mailing list