comparison mercurial/dispatch.py @ 48255:8c34edb1ad10

backout: backed out changeset 6edc8800dbc3 Same as the previous changeset. Differential Revision: https://phab.mercurial-scm.org/D11693
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 19 Oct 2021 19:04:11 +0200
parents 6edc8800dbc3
children 56d037d07395
comparison
equal deleted inserted replaced
48254:b874e8d81a98 48255:8c34edb1ad10
314 # SIGPIPE was raised. we cannot print anything in this case. 314 # SIGPIPE was raised. we cannot print anything in this case.
315 pass 315 pass
316 except IOError as inst: 316 except IOError as inst:
317 if inst.errno != errno.EPIPE: 317 if inst.errno != errno.EPIPE:
318 raise 318 raise
319 if req.ui.configbool(b'ui', b'detailed-exit-code'): 319 ret = -1
320 ret = 250
321 else:
322 ret = -1
323 finally: 320 finally:
324 duration = util.timer() - starttime 321 duration = util.timer() - starttime
325 try: 322 try:
326 req.ui.flush() # record blocked times 323 req.ui.flush() # record blocked times
327 except BaseException: 324 except BaseException: