Mercurial > hg-stable
changeset 35221:1df2f0e1dfd2
log: remove temporary variable 'date' used only once
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 02 Dec 2017 16:08:24 +0900 |
parents | 15d38e8fcb1e |
children | c7b45db8f317 |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon Dec 04 11:28:29 2017 -0500 +++ b/mercurial/cmdutil.py Sat Dec 02 16:08:24 2017 +0900 @@ -1610,8 +1610,6 @@ label='log.node') return - date = util.datestr(ctx.date()) - # i18n: column positioning for "hg log" self.ui.write(_("changeset: %s\n") % scmutil.formatchangeid(ctx), label=_changesetlabels(ctx)) @@ -1656,7 +1654,7 @@ self.ui.write(_("user: %s\n") % ctx.user(), label='log.user') # i18n: column positioning for "hg log" - self.ui.write(_("date: %s\n") % date, + self.ui.write(_("date: %s\n") % util.datestr(ctx.date()), label='log.date') if ctx.isunstable():