diff 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 (2012-05-06)
parents 770190bff625
children e462313ef1bd b54f3c502e63
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3299,7 +3299,8 @@
                        'extensions\n'))
 
     def helpextcmd(name):
-        cmd, ext, mod = extensions.disabledcmd(ui, name, ui.config('ui', 'strict'))
+        cmd, ext, mod = extensions.disabledcmd(ui, name,
+                                               ui.configbool('ui', 'strict'))
         doc = gettext(mod.__doc__).splitlines()[0]
 
         msg = help.listexts(_("'%s' is provided by the following "