diff -r fabbf9310025 -r fa88170c10bb mercurial/help.py --- a/mercurial/help.py Fri Oct 12 18:06:32 2018 +0200 +++ b/mercurial/help.py Fri Oct 12 18:49:11 2018 +0200 @@ -516,16 +516,14 @@ f = fs[0] syns[f] = ', '.join(fs) func = e[0] - p = '' - if c.startswith("^"): - p = '^' - if select and not select(p + f): + if select and not select(f): continue if (not select and name != 'shortlist' and func.__module__ != commands.__name__): continue - if name == "shortlist" and not p: - continue + if name == "shortlist": + if not getattr(func, 'helpbasic', False): + continue doc = pycompat.getdoc(func) if filtercmd(ui, f, name, doc): continue