color: improve mq extension detection
authorPatrick Mezard <pmezard@gmail.com>
Sat, 02 Aug 2008 13:49:13 +0200
changeset 6854 9d11faecb0f1
parent 6853 2ff0829bdae5
child 6855 09db2b8236ec
color: improve mq extension detection
hgext/color.py
--- a/hgext/color.py	Fri Aug 01 12:33:10 2008 +0200
+++ b/hgext/color.py	Sat Aug 02 13:49:13 2008 +0200
@@ -166,7 +166,8 @@
     nocoloropt = ('', 'no-color', None, _("don't colorize output"))
     _decoratecmd(ui, 'status', commands.table, colorstatus, nocoloropt)
     _configcmdeffects(ui, 'status', _status_effects);
-    if ui.config('extensions', 'hgext.mq', default=None) is not None:
+    if ui.config('extensions', 'hgext.mq') is not None or \
+            ui.config('extensions', 'mq') is not None:
         from hgext import mq
         _decoratecmd(ui, 'qseries', mq.cmdtable, colorqseries, nocoloropt)
         _configcmdeffects(ui, 'qseries', _patch_effects);