diff -r 340e4b711df7 -r 68328202f270 mercurial/dispatch.py --- a/mercurial/dispatch.py Sat Mar 03 23:29:40 2018 -0500 +++ b/mercurial/dispatch.py Sat Mar 03 19:02:50 2018 -0500 @@ -85,7 +85,7 @@ req = request(pycompat.sysargv[1:]) err = None try: - status = (dispatch(req) or 0) & 255 + status = (dispatch(req) or 0) except error.StdioError as e: err = e status = -1