--- a/mercurial/hgweb/webutil.py Thu Feb 07 21:48:50 2019 +0300
+++ b/mercurial/hgweb/webutil.py Wed Feb 06 17:27:43 2019 -0800
@@ -570,11 +570,9 @@
m = match.always(repo.root, repo.getcwd())
diffopts = patch.diffopts(repo.ui, untrusted=True)
- node1 = basectx.node()
- node2 = ctx.node()
parity = paritygen(stripecount)
- diffhunks = patch.diffhunks(repo, node1, node2, m, opts=diffopts)
+ diffhunks = patch.diffhunks(repo, basectx, ctx, m, opts=diffopts)
for blockno, (fctx1, fctx2, header, hunks) in enumerate(diffhunks, 1):
if style != 'raw':
header = header[1:]