Patchwork D5282: logtoprocess: update commandfinish options arguments

login
register
mail settings
Submitter phabricator
Date Nov. 16, 2018, 1:58 p.m.
Message ID <8d72af6a3b54b4585eb1df6ba4aca8d4@localhost.localdomain>
Download mbox | patch
Permalink /patch/36626/
State Not Applicable
Headers show

Comments

phabricator - Nov. 16, 2018, 1:58 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1243295fcc3a: logtoprocess: update commandfinish options arguments (authored by lothiraldan, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5282?vs=12556&id=12557

REVISION DETAIL
  https://phab.mercurial-scm.org/D5282

AFFECTED FILES
  mercurial/dispatch.py

CHANGE DETAILS




To: lothiraldan, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -250,9 +250,17 @@ 
                 req.ui._blockedtimes['command_duration'] = duration * 1000
                 req.ui.log('uiblocked', 'ui blocked ms',
                            **pycompat.strkwargs(req.ui._blockedtimes))
-            req.ui.log("commandfinish", "%s exited %d after %0.2f seconds\n",
-                       msg, ret & 255, duration,
-                       canonical_command=req.canonical_command)
+            return_code = ret & 255
+            req.ui.log(
+                "commandfinish",
+                "%s exited %d after %0.2f seconds\n",
+                msg,
+                return_code,
+                duration,
+                return_code=return_code,
+                duration=duration,
+                canonical_command=req.canonical_command,
+            )
             try:
                 req._runexithandlers()
             except: # exiting, so no re-raises