comparison mercurial/hgweb/webcommands.py @ 17303:06217d3cf8d9 stable

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.
author wujek srujek <wujek.srujek@googlemail.com>
date Tue, 31 Jul 2012 00:59:38 +0200
parents 5c64ce6168da
children 7ac5800dbc8f
comparison
equal deleted inserted replaced
17302:5c64ce6168da 17303:06217d3cf8d9
637 date=ctx.date(), 637 date=ctx.date(),
638 desc=ctx.description(), 638 desc=ctx.description(),
639 author=ctx.user(), 639 author=ctx.user(),
640 rename=rename, 640 rename=rename,
641 branch=webutil.nodebranchnodefault(ctx), 641 branch=webutil.nodebranchnodefault(ctx),
642 parent=webutil.parents(ctx), 642 parent=webutil.parents(fctx),
643 child=webutil.children(ctx), 643 child=webutil.children(fctx),
644 leftrev=leftrev, 644 leftrev=leftrev,
645 leftnode=hex(leftnode), 645 leftnode=hex(leftnode),
646 rightrev=rightrev, 646 rightrev=rightrev,
647 rightnode=hex(rightnode), 647 rightnode=hex(rightnode),
648 comparison=comparison) 648 comparison=comparison)