diff -r 9ea9e94c7492 -r 8c9e84b44221 mercurial/hgweb/webcommands.py --- 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)