Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 16591:46e9ed223d2c stable
commands: parse ui.strict config item as bool
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 06 May 2012 23:58:04 +0900 |
parents | 770190bff625 |
children | e462313ef1bd b54f3c502e63 |
comparison
equal
deleted
inserted
replaced
16586:ebd2ead59f1c | 16591:46e9ed223d2c |
---|---|
3297 else: | 3297 else: |
3298 ui.write(_('use "hg help extensions" for information on enabling ' | 3298 ui.write(_('use "hg help extensions" for information on enabling ' |
3299 'extensions\n')) | 3299 'extensions\n')) |
3300 | 3300 |
3301 def helpextcmd(name): | 3301 def helpextcmd(name): |
3302 cmd, ext, mod = extensions.disabledcmd(ui, name, ui.config('ui', 'strict')) | 3302 cmd, ext, mod = extensions.disabledcmd(ui, name, |
3303 ui.configbool('ui', 'strict')) | |
3303 doc = gettext(mod.__doc__).splitlines()[0] | 3304 doc = gettext(mod.__doc__).splitlines()[0] |
3304 | 3305 |
3305 msg = help.listexts(_("'%s' is provided by the following " | 3306 msg = help.listexts(_("'%s' is provided by the following " |
3306 "extension:") % cmd, {ext: doc}, indent=4) | 3307 "extension:") % cmd, {ext: doc}, indent=4) |
3307 ui.write(minirst.format(msg, textwidth)) | 3308 ui.write(minirst.format(msg, textwidth)) |