Mercurial > hg-stable
changeset 36711:68328202f270
dispatch: don't clamp the range of the exit code twice
We already limit the range to (0, 255) in the call to sys.exit(). The
duplicated operation can't possibly be hurting us, but let's clean it up
to avoid confusion.
author | Kevin Bullock <kbullock+mercurial@ringworld.org> |
---|---|
date | Sat, 03 Mar 2018 19:02:50 -0500 |
parents | 340e4b711df7 |
children | e39953fdd924 |
files | mercurial/dispatch.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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