Mercurial > hg
changeset 6854:9d11faecb0f1
color: improve mq extension detection
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 02 Aug 2008 13:49:13 +0200 |
parents | 2ff0829bdae5 |
children | 09db2b8236ec |
files | hgext/color.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);