Patchwork [3,of,3] help: show advanced, experimental and deprecated extensions with --verbose

login
register
mail settings
Submitter Matt Harbison
Date Dec. 29, 2018, 1:29 a.m.
Message ID <b00a136667ccb9b6cbf4.1546046946@Envy>
Download mbox | patch
Permalink /patch/37389/
State Accepted
Headers show

Comments

Matt Harbison - Dec. 29, 2018, 1:29 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1546038850 18000
#      Fri Dec 28 18:14:10 2018 -0500
# Node ID b00a136667ccb9b6cbf4923140b3ecd8eec21538
# Parent  9a51dee68d34d395488eb7e62387966f3591bd91
help: show advanced, experimental and deprecated extensions with --verbose

I noticed that phabricator and absorb weren't showing up, no matter what.
There's a related problem where commands for these extensions *do* show up
without --verbose.  I'm not sure what the point of hiding the extensions, but
not the commands is.

Patch

diff --git a/mercurial/help.py b/mercurial/help.py
--- a/mercurial/help.py
+++ b/mercurial/help.py
@@ -616,7 +616,8 @@  def help_(ui, commands, name, unknowncmd
         ex = opts.get
         anyopts = (ex(r'keyword') or not (ex(r'command') or ex(r'extension')))
         if not name and anyopts:
-            exts = listexts(_('enabled extensions:'), extensions.enabled())
+            exts = listexts(_('enabled extensions:'), extensions.enabled(),
+                            showdeprecated=ui.verbose)
             if exts:
                 rst.append('\n')
                 rst.extend(exts)