comparison mercurial/help.py @ 20823:3879ac3858ff

help: allow -k to find debug commands
author Matt Mackall <mpm@selenic.com>
date Sat, 22 Mar 2014 14:46:55 -0500
parents be87397f98c9
children eb6eaef7ae44
comparison
equal deleted inserted replaced
20822:be87397f98c9 20823:3879ac3858ff
90 or lowercontains(header) 90 or lowercontains(header)
91 or lowercontains(doc())): 91 or lowercontains(doc())):
92 results['topics'].append((names[0], header)) 92 results['topics'].append((names[0], header))
93 import commands # avoid cycle 93 import commands # avoid cycle
94 for cmd, entry in commands.table.iteritems(): 94 for cmd, entry in commands.table.iteritems():
95 if cmd.startswith('debug'):
96 continue
97 if len(entry) == 3: 95 if len(entry) == 3:
98 summary = entry[2] 96 summary = entry[2]
99 else: 97 else:
100 summary = '' 98 summary = ''
101 # translate docs *before* searching there 99 # translate docs *before* searching there