D6681: debugcommands: add support for extensions adding their own debug info
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Jul 24 05:33:21 EDT 2019
Closed by commit rHG0c0478b71595: debugcommands: add support for extensions adding their own debug info (authored by durin42).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D6681?vs=16023&id=16034
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D6681/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D6681
AFFECTED FILES
mercurial/debugcommands.py
CHANGE DETAILS
diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -1383,6 +1383,11 @@
fm.condwrite(err, 'usernameerror', _("checking username...\n %s\n"
" (specify a username in your configuration file)\n"), err)
+ for name, mod in extensions.extensions():
+ handler = getattr(mod, 'debuginstall', None)
+ if handler is not None:
+ problems += handler(ui, fm)
+
fm.condwrite(not problems, '',
_("no problems detected\n"))
if not problems:
To: durin42, #hg-reviewers, pulkit
Cc: pulkit, mercurial-devel
More information about the Mercurial-devel
mailing list