[PATCH] debugger: give a little intro before entering pdb
Mads Kiilerich
mads at kiilerich.com
Wed Jun 30 10:23:18 CDT 2010
# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1277911396 -7200
# Branch stable
# Node ID b0fefec02949c73682850c7c52020c526a7d58bc
# Parent 855452d5b4496444bb1dc9a397a2d1fa6256fbb5
debugger: give a little intro before entering pdb
diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -49,6 +49,8 @@
try:
# enter the debugger before command execution
if '--debugger' in args:
+ ui.warn(_("entering debugger - "
+ "type c to continue starting hg or h for help\n"))
pdb.set_trace()
try:
return _dispatch(ui, args)
More information about the Mercurial-devel
mailing list