mercurial/dispatch.py
changeset 8206 cce63ef1045b
parent 8190 9b8ac5fb7760
child 8225 46293a0c7e9f
equal deleted inserted replaced
8205:00736cd2702a 8206:cce63ef1045b
    45                 ui.flush()
    45                 ui.flush()
    46         except:
    46         except:
    47             # enter the debugger when we hit an exception
    47             # enter the debugger when we hit an exception
    48             if '--debugger' in args:
    48             if '--debugger' in args:
    49                 pdb.post_mortem(sys.exc_info()[2])
    49                 pdb.post_mortem(sys.exc_info()[2])
    50             ui.print_exc()
    50             ui.traceback()
    51             raise
    51             raise
    52 
    52 
    53     # Global exception handling, alphabetically
    53     # Global exception handling, alphabetically
    54     # Mercurial-specific first, followed by built-in and library exceptions
    54     # Mercurial-specific first, followed by built-in and library exceptions
    55     except error.AmbiguousCommand, inst:
    55     except error.AmbiguousCommand, inst: