[PATCH] amend: add keep parameter to cmdutil.amend

Durham Goode durham at fb.com
Mon May 6 13:13:28 CDT 2013

On 5/3/13 1:07 AM, "Pierre-Yves David" <pierre-yves.david at logilab.fr>

>On Thu, May 02, 2013 at 05:26:44PM -0700, Durham Goode wrote:
>> # HG changeset patch
>> # User Durham Goode <durham at fb.com>
>> # Date 1367539398 25200
>> #      Thu May 02 17:03:18 2013 -0700
>> # Node ID 6406230e4a8ae8ebc412621c86ab464092d99653
>> # Parent  a047d5348816e0aa561c072cdd603e0933d520b5
>> amend: add keep parameter to cmdutil.amend
>> An extension I'm working on wants to use cmdutil.amend without it
>> the original revisions. This change adds an optional flag to allow that.
>What kind of usage can that be ?
>This probably deserve a test if you want it to keep it working.

It's for an amend extension that lets you amend commit's with children.
So I want to leave the old commit alive after the amend.

I didn't feel this was worth bloating the tests with, especially since
there is no core-mercurial user facing way of executing this code at the
moment. If that means the code shouldn't be in mercurial at all, I can
probably find a hacky way to do it purely in the extension.

More information about the Mercurial-devel mailing list