# HG changeset patch # User Volker.Kleinfeld@gmx.de # Date 2005-08-27 02:20:04 # Node ID e254bcbfe636e97301f76c7da241b07be14f3d36 # Parent 55bf5cfde69e70d8c95dffb1230f1578a077e9b7 Fixed system command abord reason on windows. diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -276,6 +276,8 @@ else: 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