Mercurial > hg
comparison mercurial/help.py @ 27324:5456374561a7
help: call filtercmd from topicmatch
update test coverage to explicitly define when help -c should
list debug/deprecated items.
author | timeless <timeless@mozdev.org> |
---|---|
date | Wed, 09 Dec 2015 19:09:35 +0000 |
parents | 0fe93498ef07 |
children | eadbbd14bdc1 |
comparison
equal
deleted
inserted
replaced
27323:0fe93498ef07 | 27324:5456374561a7 |
---|---|
122 if kw in cmd or lowercontains(summary) or lowercontains(docs): | 122 if kw in cmd or lowercontains(summary) or lowercontains(docs): |
123 doclines = docs.splitlines() | 123 doclines = docs.splitlines() |
124 if doclines: | 124 if doclines: |
125 summary = doclines[0] | 125 summary = doclines[0] |
126 cmdname = cmd.partition('|')[0].lstrip('^') | 126 cmdname = cmd.partition('|')[0].lstrip('^') |
127 if filtercmd(ui, cmdname, kw, docs): | |
128 continue | |
127 results['commands'].append((cmdname, summary)) | 129 results['commands'].append((cmdname, summary)) |
128 for name, docs in itertools.chain( | 130 for name, docs in itertools.chain( |
129 extensions.enabled(False).iteritems(), | 131 extensions.enabled(False).iteritems(), |
130 extensions.disabled().iteritems()): | 132 extensions.disabled().iteritems()): |
131 # extensions.load ignores the UI argument | 133 # extensions.load ignores the UI argument |