mercurial/hook.py
changeset 37463 bbd240f81ac5
parent 37120 a8a902d7176e
child 37751 483de34f23b1
--- 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))