[PATCH] cmdutil: changeset_printer: use methods of filectx/changectx

Matt Mackall mpm at selenic.com
Mon Oct 5 17:20:23 CDT 2009


On Mon, 2009-10-05 at 18:17 -0400, Greg Ward wrote:
> # HG changeset patch
> # User Greg Ward <greg-hg at gerg.ca>
> # Date 1254781033 14400
> # Node ID 1ef07f75983d1169a63517d478a6faade27101d2
> # Parent  5287de171d74061b00cf55f3d9224dc76f832d7c
> cmdutil: changeset_printer: use methods of filectx/changectx.
> 
> This allows extensions that modify changeset metadata (e.g.
> description) by overriding methods of changectx to get consistent
> behavior from all log-like commands, regardless of whether templates
> or styles are used. Without this, overriding changectx methods works
> if you use styles or templates, but not with default log format.
> 
> This meant adding filectx.extra() for consistency with changectx.

Seems reasonable, queued.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial-devel mailing list