mercurial/dispatch.py
changeset 36711 68328202f270
parent 36670 77f98867538f
child 36743 3fdba7fb264d
equal deleted inserted replaced
36710:340e4b711df7 36711:68328202f270
    83     "run the command in sys.argv"
    83     "run the command in sys.argv"
    84     _initstdio()
    84     _initstdio()
    85     req = request(pycompat.sysargv[1:])
    85     req = request(pycompat.sysargv[1:])
    86     err = None
    86     err = None
    87     try:
    87     try:
    88         status = (dispatch(req) or 0) & 255
    88         status = (dispatch(req) or 0)
    89     except error.StdioError as e:
    89     except error.StdioError as e:
    90         err = e
    90         err = e
    91         status = -1
    91         status = -1
    92     if util.safehasattr(req.ui, 'fout'):
    92     if util.safehasattr(req.ui, 'fout'):
    93         try:
    93         try: