[PATCH 2 of 5 V2] color: use valid_effect in configstyles
Sean Farley
sean.michael.farley at gmail.com
Mon Apr 7 16:17:01 CDT 2014
# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1396902826 18000
# Mon Apr 07 15:33:46 2014 -0500
# Node ID 0baffb232925978f2e7a70f6cb2ebd770cda17d0
# Parent 20427149f64472231b279bc17ade980cae402d8c
color: use valid_effect in configstyles
diff --git a/hgext/color.py b/hgext/color.py
--- a/hgext/color.py
+++ b/hgext/color.py
@@ -326,13 +326,11 @@ def configstyles(ui):
continue
cfgeffects = ui.configlist('color', status)
if cfgeffects:
good = []
for e in cfgeffects:
- if not _terminfo_params and e in _effects:
- good.append(e)
- elif e in _terminfo_params or e[:-11] in _terminfo_params:
+ if valideffect(e):
good.append(e)
else:
ui.warn(_("ignoring unknown color/effect %r "
"(configured in color.%s)\n")
% (e, status))
More information about the Mercurial-devel
mailing list