Mercurial > hg
changeset 30714:8d46eaaa589c
summary: use the same labels as log command in "parent: " line
Re-use the cmdutil._changesetlabels function introduced in 5289fd78017a to
have consistent labels between the "changeset: " line in log command and the
"parent: " line in summary.
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Fri, 06 Jan 2017 14:34:34 +0100 |
parents | 6d0b1a69f98c |
children | 7b526670f540 |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Fri Jan 06 13:50:52 2017 +0100 +++ b/mercurial/commands.py Fri Jan 06 14:34:34 2017 +0100 @@ -5982,7 +5982,7 @@ # shows a working directory parent *changeset*: # i18n: column positioning for "hg summary" ui.write(_('parent: %d:%s ') % (p.rev(), str(p)), - label='log.changeset changeset.%s' % p.phasestr()) + label=cmdutil._changesetlabels(p)) ui.write(' '.join(p.tags()), label='log.tag') if p.bookmarks(): marks.extend(p.bookmarks())