diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1310,6 +1310,8 @@ def help_(ui, name=None, with_version=Fa 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("^")