mercurial/help.py
changeset 40295 fa88170c10bb
parent 40294 fabbf9310025
child 40412 ab09e797fbed
child 40421 e928bedf0919
equal deleted inserted replaced
40294:fabbf9310025 40295:fa88170c10bb
   514         for c, e in commands.table.iteritems():
   514         for c, e in commands.table.iteritems():
   515             fs = cmdutil.parsealiases(c)
   515             fs = cmdutil.parsealiases(c)
   516             f = fs[0]
   516             f = fs[0]
   517             syns[f] = ', '.join(fs)
   517             syns[f] = ', '.join(fs)
   518             func = e[0]
   518             func = e[0]
   519             p = ''
   519             if select and not select(f):
   520             if c.startswith("^"):
       
   521                 p = '^'
       
   522             if select and not select(p + f):
       
   523                 continue
   520                 continue
   524             if (not select and name != 'shortlist' and
   521             if (not select and name != 'shortlist' and
   525                 func.__module__ != commands.__name__):
   522                 func.__module__ != commands.__name__):
   526                 continue
   523                 continue
   527             if name == "shortlist" and not p:
   524             if name == "shortlist":
   528                 continue
   525                 if not getattr(func, 'helpbasic', False):
       
   526                     continue
   529             doc = pycompat.getdoc(func)
   527             doc = pycompat.getdoc(func)
   530             if filtercmd(ui, f, name, doc):
   528             if filtercmd(ui, f, name, doc):
   531                 continue
   529                 continue
   532             doc = gettext(doc)
   530             doc = gettext(doc)
   533             if not doc:
   531             if not doc: