[PATCH] cmdutil: display changeset diff in commit editor if verbose

Matt Mackall mpm at selenic.com
Wed Dec 18 19:34:34 CST 2013


On Thu, 2013-12-19 at 02:08 +0100, Olle Lundberg wrote:
> # HG changeset patch
> # User Olle Lundberg <olle.lundberg at gmail.com>
> # Date 1387414111 -3600
> #      Thu Dec 19 01:48:31 2013 +0100
> # Node ID daae1fe7a8ec64b7b7a385d4c11ca2833f62c91f
> # Parent  04036798ebed0c6d7062517bb49b308a15e4345e
> cmdutil: display changeset diff in commit editor if verbose
> 
> This adds the ability to display the changeset of what is
> currently being commited. This feature exists in other VCSes
> and might ease the transition for new users of mercurial.

We've actually had $HGEDITOR/ui.editor/hgeditor precisely for this
purpose for eight years. I'm not completely opposed to adding this, but
with the hgeditor approach, I can get things like editor-colorized diffs
or the ability to launch a GUI diff viewer.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list