[PATCH 2 of 3] commit: add a -M/--reuse-message option to copy a commit message from a

Sean Farley sean at farley.io
Fri May 15 18:14:48 CDT 2015


Tony Tung <tonytung at fb.com> writes:

> # HG changeset patch
> # User Tony Tung <tonytung at fb.com>
> # Date 1429655274 25200
> #      Tue Apr 21 15:27:54 2015 -0700
> # Node ID dc122dd80665762d8febe2db1a08ce00a63d5ab8
> # Parent  18cadf9d058931ef00e5272d15cb5cf2ebc3a248
> commit: add a -M/--reuse-message option to copy a commit message from a
> revspec
>
> One way to split up a diff that includes a refactor involves resetting to
> the ancestor, and then committing the refactor first.  When committing the
> main change, it's helpful to be able to reuse the commit message from the
> earlier commit that includes both the refactor and the new functionality.
> This makes it easy to grab the commit message.

A big +1 to this. I've been wanting this for a while! You're two for two
today, Tony :-)


More information about the Mercurial-devel mailing list