Patchwork D6681: debugcommands: add support for extensions adding their own debug info

login
register
mail settings
Submitter phabricator
Date July 24, 2019, 9:33 a.m.
Message ID <2cf67868064154d52ee2f617fbc3ed83@localhost.localdomain>
Download mbox | patch
Permalink /patch/41039/
State Not Applicable
Headers show

Comments

phabricator - July 24, 2019, 9:33 a.m.
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




To: durin42, #hg-reviewers, pulkit
Cc: pulkit, mercurial-devel

Patch

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: