--- a/mercurial/hgweb/webutil.py Mon Jan 19 12:59:56 2009 +0100
+++ b/mercurial/hgweb/webutil.py Mon Jan 19 13:20:47 2009 +0100
@@ -58,7 +58,7 @@
return nav
-def siblings(siblings=[], hiderev=None, **args):
+def _siblings(siblings=[], hiderev=None):
siblings = [s for s in siblings if s.node() != nullid]
if len(siblings) == 1 and siblings[0].rev() == hiderev:
return
@@ -69,9 +69,14 @@
d['description'] = s.description()
if hasattr(s, 'path'):
d['file'] = s.path()
- d.update(args)
yield d
+def parents(ctx, hide=None):
+ return _siblings(ctx.parents(), hide)
+
+def children(ctx, hide=None):
+ return _siblings(ctx.children(), hide)
+
def renamelink(fctx):
r = fctx.renamed()
if r: