remove extension commands from global help
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Thu, 12 Jun 2008 11:49:13 +0200
changeset 7126 111813de4188
parent 7125 4a1ac535be1d
child 7127 9df67ee30ef5
remove extension commands from global help
mercurial/commands.py
--- a/mercurial/commands.py	Sat Oct 18 16:50:03 2008 +0200
+++ b/mercurial/commands.py	Thu Jun 12 11:49:13 2008 +0200
@@ -1310,6 +1310,8 @@
             f = c.split("|", 1)[0]
             if select and not select(f):
                 continue
+            if select is None and e[0].__module__ != __name__:
+                continue
             if name == "shortlist" and not f.startswith("^"):
                 continue
             f = f.lstrip("^")