Mercurial > hg
comparison mercurial/commands.py @ 31345:dd49a6c166f7
summary: don't explicitly str() something we're about to %s
str() is wrong on Python 3 here, and %s implicitly calls str() anyway,
so this was just extra dancing for no reason.
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 11 Mar 2017 20:58:26 -0500 |
parents | a3a2382b2e1b |
children | d0014d2d7645 |
comparison
equal
deleted
inserted
replaced
31344:c99371e38e5e | 31345:dd49a6c166f7 |
---|---|
4810 | 4810 |
4811 for p in parents: | 4811 for p in parents: |
4812 # label with log.changeset (instead of log.parent) since this | 4812 # label with log.changeset (instead of log.parent) since this |
4813 # shows a working directory parent *changeset*: | 4813 # shows a working directory parent *changeset*: |
4814 # i18n: column positioning for "hg summary" | 4814 # i18n: column positioning for "hg summary" |
4815 ui.write(_('parent: %d:%s ') % (p.rev(), str(p)), | 4815 ui.write(_('parent: %d:%s ') % (p.rev(), p), |
4816 label=cmdutil._changesetlabels(p)) | 4816 label=cmdutil._changesetlabels(p)) |
4817 ui.write(' '.join(p.tags()), label='log.tag') | 4817 ui.write(' '.join(p.tags()), label='log.tag') |
4818 if p.bookmarks(): | 4818 if p.bookmarks(): |
4819 marks.extend(p.bookmarks()) | 4819 marks.extend(p.bookmarks()) |
4820 if p.rev() == -1: | 4820 if p.rev() == -1: |