Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 10260:fe699ca08a45
templatekw: fix extras, manifest and showlist args (issue1989)
Removing the explicit parameters from keywords signature is easier than copying
and reproducing the original argument list.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 18 Jan 2010 22:59:32 +0100 |
parents | af24805aa37c |
children | d6512b3e9ac0 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon Jan 18 15:38:31 2010 -0200 +++ b/mercurial/cmdutil.py Mon Jan 18 22:59:32 2010 +0100 @@ -806,10 +806,11 @@ # causes unexpected behaviours at templating level and makes # it harder to extract it in a standalone function. Its # behaviour cannot be changed so leave it here for now. - def showparents(repo, ctx, templ, **args): + def showparents(**args): + ctx = args['ctx'] parents = [[('rev', p.rev()), ('node', p.hex())] for p in self._meaningful_parentrevs(ctx)] - return showlist(templ, 'parent', parents, **args) + return showlist('parent', parents, **args) props = props.copy() props.update(templatekw.keywords)