dispatch: disable demandimport when invoking the debugger
Turns out that demandimport confuses pudb, which does some pretty
complicated imports. I think it's reasonable to disable demandimport
here.
--- a/mercurial/dispatch.py Wed Sep 09 14:43:45 2015 -0700
+++ b/mercurial/dispatch.py Thu Sep 10 09:30:10 2015 -0400
@@ -181,8 +181,8 @@
debugtrace[debugger] == debugtrace['pdb']):
ui.warn(_("%s debugger specified "
"but its module was not found\n") % debugger)
-
- debugtrace[debugger]()
+ with demandimport.disabled():
+ debugtrace[debugger]()
try:
return _dispatch(req)
finally: