diff mercurial/help.py @ 27387:dfab0afde928

help: filter extension commands
author timeless <timeless@mozdev.org>
date Mon, 14 Dec 2015 05:29:55 +0000
parents 2278870bb997
children 64208bd4c580
line wrap: on
line diff
--- a/mercurial/help.py	Mon Dec 14 06:00:32 2015 +0000
+++ b/mercurial/help.py	Mon Dec 14 05:29:55 2015 +0000
@@ -143,6 +143,8 @@
                     cmddoc = gettext(entry[0].__doc__).splitlines()[0]
                 else:
                     cmddoc = _('(no help text available)')
+                if filtercmd(ui, cmdname, kw, cmddoc):
+                    continue
                 results['extensioncommands'].append((cmdname, cmddoc))
     return results