comparison mercurial/help.py @ 20822:be87397f98c9

help: let 'hg help debug' show the list of secret debug commands The names of the debug commands are not easy to remember and they are not easy to find.
author Mads Kiilerich <madski@unity3d.com>
date Sat, 15 Mar 2014 16:14:04 +0100
parents 05267e6e94dd
children 3879ac3858ff
comparison
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)