mercurial/hgweb/webcommands.py
changeset 31082 abb92b3d370e
parent 31024 0b8356705de6
child 31660 c2dbd818e884
--- a/mercurial/hgweb/webcommands.py	Wed Feb 22 18:26:12 2017 -0800
+++ b/mercurial/hgweb/webcommands.py	Tue Jan 17 17:25:48 2017 +0100
@@ -754,13 +754,14 @@
     if fctx is not None:
         path = fctx.path()
         ctx = fctx.changectx()
+    basectx = ctx.p1()
 
     parity = paritygen(web.stripecount)
     style = web.config('web', 'style', 'paper')
     if 'style' in req.form:
         style = req.form['style'][0]
 
-    diffs = webutil.diffs(web.repo, tmpl, ctx, None, [path], parity, style)
+    diffs = webutil.diffs(web.repo, tmpl, ctx, basectx, [path], parity, style)
     if fctx is not None:
         rename = webutil.renamelink(fctx)
         ctx = fctx