# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 2014-08-20 19:19:37 # Node ID b07fd3ac8882f24b3f63cb80836ebd9532da94f3 # Parent 889789a2ca9f19755bf0d302c8671f850e42a059 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. diff --git a/hgext/color.py b/hgext/color.py --- a/hgext/color.py +++ b/hgext/color.py @@ -11,7 +11,7 @@ This extension modifies the status and r 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 @@ effects may be overridden from your conf 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 @@ except ImportError: 'diff.file_b': 'green bold', 'diff.hunk': 'magenta', 'diff.inserted': 'green', + 'diff.tab': '', 'diff.trailingwhitespace': 'bold red_background', 'changeset.public' : '', 'changeset.draft' : '',