diff mercurial/hook.py @ 37463:bbd240f81ac5

procutil: make explainexit() simply return a message (API) Almost all callers want it.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 07 Apr 2018 21:23:42 +0900
parents a8a902d7176e
children 483de34f23b1
line wrap: on
line diff
--- a/mercurial/hook.py	Sat Apr 07 21:21:03 2018 +0900
+++ b/mercurial/hook.py	Sat Apr 07 21:23:42 2018 +0900
@@ -154,7 +154,7 @@
     ui.log('exthook', 'exthook-%s: %s finished in %0.2f seconds\n',
            name, cmd, duration)
     if r:
-        desc, r = procutil.explainexit(r)
+        desc = procutil.explainexit(r)
         if throw:
             raise error.HookAbort(_('%s hook %s') % (name, desc))
         ui.warn(_('warning: %s hook %s\n') % (name, desc))