diff mercurial/hgweb/webcommands.py @ 40295:fa88170c10bb

help: adding a proper declaration for shortlist/basic commands (API) We previously used the '^' prefix to indicate that a command should be shown on the short list (shown for just "hg"), but that's a horrible hack, so I'm removing it. Differential Revision: https://phab.mercurial-scm.org/D5069
author Rodrigo Damazio <rdamazio@google.com>
date Fri, 12 Oct 2018 18:49:11 +0200
parents 9c6473d2038b
children 3d76a8e627a6 4265bfb53dd3
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Fri Oct 12 18:06:32 2018 +0200
+++ b/mercurial/hgweb/webcommands.py	Fri Oct 12 18:49:11 2018 +0200
@@ -1418,8 +1418,8 @@
             if 'DEPRECATED' in doc or c.startswith('debug'):
                 continue
             cmd = primary(c)
-            if cmd.startswith('^'):
-                early.append((cmd[1:], doc))
+            if getattr(e[0], 'helpbasic', False):
+                early.append((cmd, doc))
             else:
                 other.append((cmd, doc))