Mercurial > hg-stable
changeset 22710:b07fd3ac8882
color: document the possibility to colourise tabs in diffs
This is a no-op change that simply suggests that tabs can be
colourised, but defaults to no colour effects for tabs. This
complements cset c343557a8442.
Like the similar effects for phases from f8e2aebbb24c, we set the
default effects to '' instead of None, so that this is a true noop
change. Otherwise, the diff.tab effect would override (i.e.
neutralise) the effect of the surrounding label.
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Wed, 20 Aug 2014 15:19:37 -0400 |
parents | 889789a2ca9f |
children | 60ac52a21512 |
files | hgext/color.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/color.py Fri Sep 12 22:07:23 2014 -0400 +++ b/hgext/color.py Wed Aug 20 15:19:37 2014 -0400 @@ -11,7 +11,7 @@ to their output to reflect file status, the qseries command to add color to reflect patch status (applied, unapplied, missing), and to diff-related commands to highlight additions, removals, diff headers, -and trailing whitespace. +tabs, and trailing whitespace. Other effects in addition to color, like bold and underlined text, are also available. By default, the terminfo database is used to find the @@ -61,6 +61,7 @@ diff.deleted = red diff.inserted = green diff.changed = white + diff.tab = diff.trailingwhitespace = bold red_background # Blank so it inherits the style of the surrounding label @@ -279,6 +280,7 @@ 'diff.file_b': 'green bold', 'diff.hunk': 'magenta', 'diff.inserted': 'green', + 'diff.tab': '', 'diff.trailingwhitespace': 'bold red_background', 'changeset.public' : '', 'changeset.draft' : '',