[PATCH 1 of 3] web: prevent TypeError thrown when using the diffstat templates

Matt Mackall mpm at selenic.com
Thu Jun 2 11:30:53 CDT 2011


On Thu, 2011-06-02 at 21:12 +0800, Steven Brown wrote:
> # HG changeset patch
> # User Steven Brown <StevenGBrown at gmail.com>
> # Date 1307011951 -28800
> # Node ID a9941bd9c6b03f2cb17e0183ca63736cad16097f
> # Parent  30506b89435921bf2e7622613044cca2acab4196
> web: prevent TypeError thrown when using the diffstat templates
> 
> Remove the lambda used to wrap webutil.diffstat because:
> - functions passed to the templater must accept keyword arguments
> - webutil.diffstat is a generator, so already calculates the diffstat lazily

My apologies for that. I was trying to figure out whether the lambda was
needed for lazy evaluation, convinced myself it wasn't, then somehow
managed to commit it anyway.

Queued, thanks.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list