diff -r 0a823de8d7b7 -r 882b170ae616 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Sat Sep 26 12:32:03 2015 +0900 +++ b/mercurial/cmdutil.py Sat Sep 26 12:38:02 2015 +0900 @@ -1428,24 +1428,8 @@ def _show(self, ctx, copies, matchfn, props): '''show a single changeset or file revision''' - - showlist = templatekw.showlist - - # showparents() behavior depends on ui trace level which - # causes unexpected behaviors at templating level and makes - # it harder to extract it in a standalone function. Its - # behavior cannot be changed so leave it here for now. - def showparents(**args): - ctx = args['ctx'] - parents = [[('rev', p.rev()), - ('node', p.hex()), - ('phase', p.phasestr())] - for p in scmutil.meaningfulparents(self.repo, ctx)] - return showlist('parent', parents, **args) - props = props.copy() props.update(templatekw.keywords) - props['parents'] = showparents props['templ'] = self.t props['ctx'] = ctx props['repo'] = self.repo