mercurial/help.py
changeset 20822 be87397f98c9
parent 20743 05267e6e94dd
child 20823 3879ac3858ff
equal deleted inserted replaced
20821:3d1d16b19e7d 20822:be87397f98c9
   309 
   309 
   310     def helplist(select=None):
   310     def helplist(select=None):
   311         # list of commands
   311         # list of commands
   312         if name == "shortlist":
   312         if name == "shortlist":
   313             header = _('basic commands:\n\n')
   313             header = _('basic commands:\n\n')
       
   314         elif name == "debug":
       
   315             header = _('debug commands (internal and unsupported):\n\n')
   314         else:
   316         else:
   315             header = _('list of commands:\n\n')
   317             header = _('list of commands:\n\n')
   316 
   318 
   317         h = {}
   319         h = {}
   318         cmds = {}
   320         cmds = {}
   324                 e[0].__module__ != commands.__name__):
   326                 e[0].__module__ != commands.__name__):
   325                 continue
   327                 continue
   326             if name == "shortlist" and not f.startswith("^"):
   328             if name == "shortlist" and not f.startswith("^"):
   327                 continue
   329                 continue
   328             f = f.lstrip("^")
   330             f = f.lstrip("^")
   329             if not ui.debugflag and f.startswith("debug"):
   331             if not ui.debugflag and f.startswith("debug") and name != "debug":
   330                 continue
   332                 continue
   331             doc = e[0].__doc__
   333             doc = e[0].__doc__
   332             if doc and 'DEPRECATED' in doc and not ui.verbose:
   334             if doc and 'DEPRECATED' in doc and not ui.verbose:
   333                 continue
   335                 continue
   334             doc = gettext(doc)
   336             doc = gettext(doc)