changeset 26851:2e42517129ca

dispatch: use the right context manager to deactivate demandimport In e86d12404d69 I very embarrassingly wrote a patch with the completely wrong function name. This should fix it.
author Jordi GutiƩrrez Hermoso <jordigh@octave.org>
date Sun, 13 Sep 2015 16:30:21 -0400 (2015-09-13)
parents 6c962145f523
children 1c6f7cc52da9
files mercurial/dispatch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -181,7 +181,7 @@
                     debugtrace[debugger] == debugtrace['pdb']):
                     ui.warn(_("%s debugger specified "
                               "but its module was not found\n") % debugger)
-                with demandimport.disabled():
+                with demandimport.deactivated():
                     debugtrace[debugger]()
             try:
                 return _dispatch(req)