diff mercurial/patch.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 00e4bd97b095
children ef661ce45cdb
line wrap: on
line diff
--- a/mercurial/patch.py	Sat Apr 07 21:21:03 2018 +0900
+++ b/mercurial/patch.py	Sat Apr 07 21:23:42 2018 +0900
@@ -2133,7 +2133,7 @@
     code = fp.close()
     if code:
         raise PatchError(_("patch command failed: %s") %
-                         procutil.explainexit(code)[0])
+                         procutil.explainexit(code))
     return fuzz
 
 def patchbackend(ui, backend, patchobj, strip, prefix, files=None,