# HG changeset patch # User wujek srujek # Date 1343689178 -7200 # Node ID 06217d3cf8d9f92b8ed52a2cf19fb166701db8fc # Parent 5c64ce6168da0b90a20fcbb97c36f93bb8840bad hgweb: fixes invalid parents / children in comparison Previously, the parents / children were computed relative to the cset of the currently shown file, which was wrong and inconsistent with diff and others. With this patch, the listed csets are those that contain changes to the currently compared file, which don't necessarily have to be the direct parents and children of the changeset itself. diff -r 5c64ce6168da -r 06217d3cf8d9 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Tue Jul 31 14:14:15 2012 +0200 +++ b/mercurial/hgweb/webcommands.py Tue Jul 31 00:59:38 2012 +0200 @@ -639,8 +639,8 @@ 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 -r 5c64ce6168da -r 06217d3cf8d9 tests/test-hgweb-diffs.t --- a/tests/test-hgweb-diffs.t Tue Jul 31 14:14:15 2012 +0200 +++ b/tests/test-hgweb-diffs.t Tue Jul 31 00:59:38 2012 +0200 @@ -628,7 +628,7 @@ children - 559edbd9ed20 + @@ -746,7 +746,7 @@ parents - 559edbd9ed20 + 0cd96de13884 children @@ -870,7 +870,7 @@ parents - d73db4d812ff + 0cd96de13884 children