diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -639,8 +639,8 @@ def comparison(web, req, tmpl): author=ctx.user(), rename=rename, branch=webutil.nodebranchnodefault(ctx), - parent=webutil.parents(ctx), - child=webutil.children(ctx), + parent=webutil.parents(fctx), + child=webutil.children(fctx), leftrev=leftrev, leftnode=hex(leftnode), rightrev=rightrev, diff --git a/tests/test-hgweb-diffs.t b/tests/test-hgweb-diffs.t --- a/tests/test-hgweb-diffs.t +++ b/tests/test-hgweb-diffs.t @@ -628,7 +628,7 @@ comparison new file children - 559edbd9ed20 + @@ -746,7 +746,7 @@ comparison existing file parents - 559edbd9ed20 + 0cd96de13884 children @@ -870,7 +870,7 @@ comparison removed file parents - d73db4d812ff + 0cd96de13884 children