--- a/mercurial/hgweb/webcommands.py Thu Apr 17 09:36:08 2014 +0900
+++ b/mercurial/hgweb/webcommands.py Thu Apr 17 09:36:08 2014 +0900
@@ -717,13 +717,13 @@
rightrev = fctx.filerev()
rightnode = fctx.filenode()
rightlines = filelines(fctx)
- parents = fctx.parents()
- if not parents:
+ parent = ctx.p1()
+ if path not in parent:
leftrev = -1
leftnode = nullid
leftlines = ()
else:
- pfctx = parents[0]
+ pfctx = parent[path]
leftrev = pfctx.filerev()
leftnode = pfctx.filenode()
leftlines = filelines(pfctx)