Mercurial > hg
comparison mercurial/dispatch.py @ 26236: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 |
parents | e86d12404d69 |
children | 3e79ec0ba589 |
comparison
equal
deleted
inserted
replaced
26235:6c962145f523 | 26236:2e42517129ca |
---|---|
179 | 179 |
180 if (debugger != 'pdb' and | 180 if (debugger != 'pdb' and |
181 debugtrace[debugger] == debugtrace['pdb']): | 181 debugtrace[debugger] == debugtrace['pdb']): |
182 ui.warn(_("%s debugger specified " | 182 ui.warn(_("%s debugger specified " |
183 "but its module was not found\n") % debugger) | 183 "but its module was not found\n") % debugger) |
184 with demandimport.disabled(): | 184 with demandimport.deactivated(): |
185 debugtrace[debugger]() | 185 debugtrace[debugger]() |
186 try: | 186 try: |
187 return _dispatch(req) | 187 return _dispatch(req) |
188 finally: | 188 finally: |
189 ui.flush() | 189 ui.flush() |