mercurial/hgweb/webcommands.py
changeset 14570 9f908ef5a595
parent 14514 175e4b9d8a96
child 14771 0cc66f13bea0
--- a/mercurial/hgweb/webcommands.py	Sat Jun 11 14:14:53 2011 -0500
+++ b/mercurial/hgweb/webcommands.py	Sat Jun 11 21:11:43 2011 +0800
@@ -271,7 +271,8 @@
     diffs = webutil.diffs(web.repo, tmpl, ctx, None, parity, style)
 
     parity = paritygen(web.stripecount)
-    diffstat = webutil.diffstat(tmpl, ctx, parity)
+    diffstatgen = webutil.diffstatgen(ctx)
+    diffstat = webutil.diffstat(tmpl, ctx, diffstatgen, parity)
 
     return tmpl('changeset',
                 diff=diffs,
@@ -286,6 +287,7 @@
                 desc=ctx.description(),
                 date=ctx.date(),
                 files=files,
+                diffsummary=lambda **x: webutil.diffsummary(diffstatgen),
                 diffstat=diffstat,
                 archives=web.archivelist(ctx.hex()),
                 tags=webutil.nodetagsdict(web.repo, ctx.node()),