Skip to content
Snippets Groups Projects
Commit 1e2454b6 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

help: do not abort topicmatch() because of unimportable extensions

This is alternative workaround to D1198, originally spotted by the earlier
version of the releasenotes extension.
parent 645b6684
No related branches found
No related tags found
No related merge requests found
......@@ -158,8 +158,7 @@
extensions.disabled().iteritems()):
if not docs:
continue
mod = extensions.load(ui, name, '')
name = name.rpartition('.')[-1]
if lowercontains(name) or lowercontains(docs):
# extension docs are already translated
results['extensions'].append((name, docs.splitlines()[0]))
......@@ -162,7 +161,12 @@
name = name.rpartition('.')[-1]
if lowercontains(name) or lowercontains(docs):
# extension docs are already translated
results['extensions'].append((name, docs.splitlines()[0]))
try:
mod = extensions.load(ui, name, '')
except ImportError:
# debug message would be printed in extensions.load()
continue
for cmd, entry in getattr(mod, 'cmdtable', {}).iteritems():
if kw in cmd or (len(entry) > 2 and lowercontains(entry[2])):
cmdname = cmd.partition('|')[0].lstrip('^')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment