log: remove temporary variable 'date' used only once
authorYuya Nishihara <yuya@tcha.org>
Sat, 02 Dec 2017 16:08:24 +0900
changeset 35211 1df2f0e1dfd2
parent 35210 15d38e8fcb1e
child 35212 c7b45db8f317
log: remove temporary variable 'date' used only once
mercurial/cmdutil.py
--- 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():