mercurial/dispatch.py
changeset 15439 01611e7c36ff
parent 15233 81c97964d123
child 15513 646759147717
equal deleted inserted replaced
15438:4d5b12a5517b 15439:01611e7c36ff
    22         self.fout = fout
    22         self.fout = fout
    23         self.ferr = ferr
    23         self.ferr = ferr
    24 
    24 
    25 def run():
    25 def run():
    26     "run the command in sys.argv"
    26     "run the command in sys.argv"
    27     sys.exit(dispatch(request(sys.argv[1:])))
    27     sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
    28 
    28 
    29 def dispatch(req):
    29 def dispatch(req):
    30     "run the command specified in req.args"
    30     "run the command specified in req.args"
    31     if req.ferr:
    31     if req.ferr:
    32         ferr = req.ferr
    32         ferr = req.ferr