changeset 32130:c3dcec6cbc1b

py3: use %d instead of %s for integers dispatch._runcatch() always returns an integer value.
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 21 Apr 2017 01:13:18 +0530
parents f0ea0f642627
children 35a69efbf190
files mercurial/dispatch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dispatch.py	Fri Apr 21 00:53:38 2017 +0530
+++ b/mercurial/dispatch.py	Fri Apr 21 01:13:18 2017 +0530
@@ -183,7 +183,7 @@
         if req.ui.logblockedtimes:
             req.ui._blockedtimes['command_duration'] = duration * 1000
             req.ui.log('uiblocked', 'ui blocked ms', **req.ui._blockedtimes)
-        req.ui.log("commandfinish", "%s exited %s after %0.2f seconds\n",
+        req.ui.log("commandfinish", "%s exited %d after %0.2f seconds\n",
                    msg, ret or 0, duration)
         try:
             req._runexithandlers()