comparison mercurial/extensions.py @ 30030:3741a8f86e88

extensions: add a note about debug output during extensions search These messages do not show up when one use '--debug'. This is quite confusing so we clarify the situation next to the 'ui.debug' call.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 30 Sep 2016 00:27:35 +0200
parents ebe488e04ca3
children 8f54f9b8010d
comparison
equal deleted inserted replaced
30029:ebe488e04ca3 30030:3741a8f86e88
79 for comp in components[1:]: 79 for comp in components[1:]:
80 mod = getattr(mod, comp) 80 mod = getattr(mod, comp)
81 return mod 81 return mod
82 82
83 def _reportimporterror(ui, err, failed, next): 83 def _reportimporterror(ui, err, failed, next):
84 # note: this ui.debug happens before --debug is processed,
85 # Use --config ui.debug=1 to see them.
84 ui.debug('could not import %s (%s): trying %s\n' 86 ui.debug('could not import %s (%s): trying %s\n'
85 % (failed, err, next)) 87 % (failed, err, next))
86 if ui.debugflag: 88 if ui.debugflag:
87 ui.traceback() 89 ui.traceback()
88 90