# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-04-20 19:43:18 # Node ID c3dcec6cbc1bc3428f8d7b757a3621204a4e1742 # Parent f0ea0f64262714628cba98613958b3ce5e26a9de py3: use %d instead of %s for integers dispatch._runcatch() always returns an integer value. diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -183,7 +183,7 @@ def dispatch(req): 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()