mercurial/hgweb/webutil.py
changeset 31099 abb92b3d370e
parent 30385 11b8b740d54a
child 31285 e2f141045634
--- a/mercurial/hgweb/webutil.py	Wed Feb 22 18:26:12 2017 -0800
+++ b/mercurial/hgweb/webutil.py	Tue Jan 17 17:25:48 2017 +0100
@@ -442,14 +442,7 @@
         m = match.always(repo.root, repo.getcwd())
 
     diffopts = patch.diffopts(repo.ui, untrusted=True)
-    if basectx is None:
-        parents = ctx.parents()
-        if parents:
-            node1 = parents[0].node()
-        else:
-            node1 = nullid
-    else:
-        node1 = basectx.node()
+    node1 = basectx.node()
     node2 = ctx.node()
 
     block = []