Mercurial > hg
comparison mercurial/commandserver.py @ 38768:afc4ad706f9c
dispatch: making all hg abortions be output with a specific label
This allows abortions to be highlighted specially and separately
from warnings - for instance, red is a reasonable color for when hg
aborts, but is overly dramatic for most warnings produced elsewhere.
Differential Revision: https://phab.mercurial-scm.org/D3967
author | Rodrigo Damazio Bovendorp <rdamazio@google.com> |
---|---|
date | Thu, 19 Jul 2018 23:22:05 -0700 |
parents | c07424ec633c |
children | 24e493ec2229 |
comparison
equal
deleted
inserted
replaced
38767:eb2945f0a4a1 | 38768:afc4ad706f9c |
---|---|
351 try: | 351 try: |
352 sv.serve() | 352 sv.serve() |
353 # handle exceptions that may be raised by command server. most of | 353 # handle exceptions that may be raised by command server. most of |
354 # known exceptions are caught by dispatch. | 354 # known exceptions are caught by dispatch. |
355 except error.Abort as inst: | 355 except error.Abort as inst: |
356 ui.warn(_('abort: %s\n') % inst) | 356 ui.error(_('abort: %s\n') % inst) |
357 except IOError as inst: | 357 except IOError as inst: |
358 if inst.errno != errno.EPIPE: | 358 if inst.errno != errno.EPIPE: |
359 raise | 359 raise |
360 except KeyboardInterrupt: | 360 except KeyboardInterrupt: |
361 pass | 361 pass |