Fixed system command abord reason on windows.
authorVolker.Kleinfeld@gmx.de
Fri, 26 Aug 2005 19:20:04 -0700
changeset 1075 e254bcbfe636
parent 1074 55bf5cfde69e
child 1076 01db658cc78a
Fixed system command abord reason on windows.
mercurial/util.py
--- a/mercurial/util.py	Fri Aug 26 19:19:35 2005 -0700
+++ b/mercurial/util.py	Fri Aug 26 19:20:04 2005 -0700
@@ -276,6 +276,8 @@
 
     def explain_exit(code):
         """return a 2-tuple (desc, code) describing a process's status"""
+        if os.name == 'nt': # os.WIFxx is not supported on windows
+            return "aborted with error." , -1
         if os.WIFEXITED(code):
             val = os.WEXITSTATUS(code)
             return "exited with status %d" % val, val