Mercurial > hg
comparison mercurial/dispatch.py @ 11495:6ee107782018
debugger: give a little intro before entering pdb
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 30 Jun 2010 17:23:16 +0200 |
parents | 2347513f562a |
children | 24965bb270b7 |
comparison
equal
deleted
inserted
replaced
11494:2347513f562a | 11495:6ee107782018 |
---|---|
47 | 47 |
48 try: | 48 try: |
49 try: | 49 try: |
50 # enter the debugger before command execution | 50 # enter the debugger before command execution |
51 if '--debugger' in args: | 51 if '--debugger' in args: |
52 ui.warn(_("entering debugger - " | |
53 "type c to continue starting hg or h for help\n")) | |
52 pdb.set_trace() | 54 pdb.set_trace() |
53 try: | 55 try: |
54 return _dispatch(ui, args) | 56 return _dispatch(ui, args) |
55 finally: | 57 finally: |
56 ui.flush() | 58 ui.flush() |