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

Augie Fackler durin42 at gmail.com
Sat Jan 2 23:30:29 CST 2010


On Jan 2, 2010, at 11:50 AM, Stefano Tortarolo wrote:

> 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'?

I'll propose "pick" as a command, since cherry-pick seems to be a term  
somewhat widely used for this. I'm not sure "port" makes sense to me  
either.

>
>> 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
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel



More information about the Mercurial-devel mailing list