mercurial/commands.py
changeset 479 7293cb91bf2a
parent 477 520540fd6b64
child 480 430a10669928
equal deleted inserted replaced
478:f1804f2e7f35 479:7293cb91bf2a
   170             show_version(ui)
   170             show_version(ui)
   171             ui.write('\n')
   171             ui.write('\n')
   172         ui.write('hg commands:\n\n')
   172         ui.write('hg commands:\n\n')
   173 
   173 
   174         h = {}
   174         h = {}
   175         for c,e in table.items():
   175         for c, e in table.items():
   176             f = c
   176             f = c.split("|")[0]
   177             aliases = None
   177             if f.startswith("debug"):
   178             if "|" in f:
   178                 continue
   179                 l = f.split("|")
       
   180                 f, aliases = l[0], l[1:]
       
   181             if f.startswith("debug"): continue
       
   182             d = ""
   179             d = ""
   183             if e[0].__doc__:
   180             if e[0].__doc__:
   184                 d = e[0].__doc__.splitlines(0)[0].rstrip()
   181                 d = e[0].__doc__.splitlines(0)[0].rstrip()
   185             h[f] = d
   182             h[f] = d
   186 
   183