# HG changeset patch # User Steven Brown # Date 1307011951 -28800 # Node ID 175e4b9d8a9624100972ee7faf2183c70e8e35b1 # Parent 85fe676c27e9a73ae0cc5b3c41469b3d5740d128 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 This reverts the changes made to 1d3e2349304a after it was submitted to the mailing list but before it was queued. diff -r 85fe676c27e9 -r 175e4b9d8a96 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Thu Jun 02 11:27:40 2011 -0500 +++ b/mercurial/hgweb/webcommands.py Thu Jun 02 18:52:31 2011 +0800 @@ -271,7 +271,7 @@ diffs = webutil.diffs(web.repo, tmpl, ctx, None, parity, style) parity = paritygen(web.stripecount) - diffstat = lambda: webutil.diffstat(tmpl, ctx, parity) + diffstat = webutil.diffstat(tmpl, ctx, parity) return tmpl('changeset', diff=diffs,