Mercurial > hg-stable
comparison mercurial/commands.py @ 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 | caf7e1c5efe4 |
children | 7b526670f540 |
comparison
equal
deleted
inserted
replaced
30713:6d0b1a69f98c | 30714:8d46eaaa589c |
---|---|
5980 for p in parents: | 5980 for p in parents: |
5981 # label with log.changeset (instead of log.parent) since this | 5981 # label with log.changeset (instead of log.parent) since this |
5982 # shows a working directory parent *changeset*: | 5982 # shows a working directory parent *changeset*: |
5983 # i18n: column positioning for "hg summary" | 5983 # i18n: column positioning for "hg summary" |
5984 ui.write(_('parent: %d:%s ') % (p.rev(), str(p)), | 5984 ui.write(_('parent: %d:%s ') % (p.rev(), str(p)), |
5985 label='log.changeset changeset.%s' % p.phasestr()) | 5985 label=cmdutil._changesetlabels(p)) |
5986 ui.write(' '.join(p.tags()), label='log.tag') | 5986 ui.write(' '.join(p.tags()), label='log.tag') |
5987 if p.bookmarks(): | 5987 if p.bookmarks(): |
5988 marks.extend(p.bookmarks()) | 5988 marks.extend(p.bookmarks()) |
5989 if p.rev() == -1: | 5989 if p.rev() == -1: |
5990 if not len(repo): | 5990 if not len(repo): |