[PATCH 2 of 2] extensions: add a note about debug output during extensions search

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Sep 29 18:41:03 EDT 2016


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1475188055 -7200
#      Fri Sep 30 00:27:35 2016 +0200
# Node ID 22972591f1ff7914713bcffd8d8460c2c4331068
# Parent  3be12e323bde3e199c72b10e101487bc7957fdfd
# EXP-Topic extensions.debug
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.

diff --git a/mercurial/extensions.py b/mercurial/extensions.py
--- a/mercurial/extensions.py
+++ b/mercurial/extensions.py
@@ -81,6 +81,8 @@ def _importh(name):
     return mod
 
 def _reportimporterror(ui, err, failed, next):
+    # note: this ui.debug happens before --debug is processed,
+    #       Use --config ui.debug=1 to see them.
     ui.debug('could not import %s (%s): trying %s\n'
              % (failed, err, next))
     if ui.debugflag:


More information about the Mercurial-devel mailing list