equal
deleted
inserted
replaced
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: |