##// END OF EJS Templates
extensions: update doc of enabled() and disabled() according to d5b525697ddb
Yuya Nishihara -
r14530:cd31a1cc default
parent child Browse files
Show More
@@ -261,9 +261,7 b' def _disabledhelp(path):'
261 return _('(no help text available)')
261 return _('(no help text available)')
262
262
263 def disabled():
263 def disabled():
264 '''find disabled extensions from hgext
264 '''find disabled extensions from hgext. returns a dict of {name: desc}'''
265 returns a dict of {name: desc}, and the max name length'''
266
267 paths = _disabledpaths()
265 paths = _disabledpaths()
268 if not paths:
266 if not paths:
269 return None
267 return None
@@ -328,7 +326,7 b' def disabledcmd(ui, cmd, strict=False):'
328 raise error.UnknownCommand(cmd)
326 raise error.UnknownCommand(cmd)
329
327
330 def enabled():
328 def enabled():
331 '''return a dict of {name: desc} of extensions, and the max name length'''
329 '''return a dict of {name: desc} of extensions'''
332 exts = {}
330 exts = {}
333 for ename, ext in extensions():
331 for ename, ext in extensions():
334 doc = (gettext(ext.__doc__) or _('(no help text available)'))
332 doc = (gettext(ext.__doc__) or _('(no help text available)'))
General Comments 0
You need to be logged in to leave comments. Login now