[PATCH 3 of 3] color: respect HGPLAIN
steve at borho.org
steve at borho.org
Tue Apr 6 08:59:05 CDT 2010
# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1270562058 18000
# Node ID a41b7a60e2b752b50df39c123d725ae9520b6e2a
# Parent 61d532b84712ed20db328bc7adea80591d931b8c
color: respect HGPLAIN
diff --git a/hgext/color.py b/hgext/color.py
--- a/hgext/color.py
+++ b/hgext/color.py
@@ -171,6 +171,8 @@
return orig(*[style(str(a), label) for a in args], **opts)
def uisetup(ui):
+ if ui.plain():
+ return
global mode
mode = ui.config('ui', 'color', 'auto')
if mode == 'auto':
More information about the Mercurial-devel
mailing list