summaryrefslogtreecommitdiff
path: root/hgext/color.py
diff options
context:
space:
mode:
Diffstat (limited to 'hgext/color.py')
-rw-r--r--hgext/color.py24
1 files changed, 14 insertions, 10 deletions
diff --git a/hgext/color.py b/hgext/color.py
index 22ef360..a4fe16a 100644
--- a/hgext/color.py
+++ b/hgext/color.py
@@ -2,8 +2,19 @@
#
# Copyright (C) 2007 Kevin Christen <kevin.christen@gmail.com>
#
-# This software may be used and distributed according to the terms of the
-# GNU General Public License version 2 or any later version.
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation; either version 2 of the License, or (at your
+# option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+# Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
'''colorize output from some commands
@@ -57,9 +68,6 @@ Default effects may be overridden from your configuration file::
branches.current = green
branches.inactive = none
- tags.normal = green
- tags.local = black bold
-
The available effects in terminfo mode are 'blink', 'bold', 'dim',
'inverse', 'invisible', 'italic', 'standout', and 'underline'; in
ECMA-48 mode, the options are 'bold', 'inverse', 'italic', and
@@ -105,8 +113,6 @@ import os
from mercurial import commands, dispatch, extensions, ui as uimod, util
from mercurial.i18n import _
-testedwith = 'internal'
-
# start and stop parameters for effects
_effects = {'none': 0, 'black': 30, 'red': 31, 'green': 32, 'yellow': 33,
'blue': 34, 'magenta': 35, 'cyan': 36, 'white': 37, 'bold': 1,
@@ -251,9 +257,7 @@ _styles = {'grep.match': 'red bold',
'status.ignored': 'black bold',
'status.modified': 'blue bold',
'status.removed': 'red bold',
- 'status.unknown': 'magenta bold underline',
- 'tags.normal': 'green',
- 'tags.local': 'black bold'}
+ 'status.unknown': 'magenta bold underline'}
def _effect_str(effect):