# HG changeset patch # User Steve Borho # Date 2010-04-06 13:54:18 # Node ID 3f30190781a38abc8a05aca3be3d8a9d8092700a # Parent a4944b430417705904da97cf383409fe832b90be color: respect HGPLAIN diff --git a/hgext/color.py b/hgext/color.py --- a/hgext/color.py +++ b/hgext/color.py @@ -180,6 +180,8 @@ def write_err(orig, *args, **opts): return orig(*[style(str(a), label) for a in args], **opts) def uisetup(ui): + if ui.plain(): + return global mode mode = ui.config('color', 'mode', 'auto') if mode == 'auto':