Patchwork color: add missing 'dim' in _effects

login
register
mail settings
Submitter Sean Farley
Date Jan. 19, 2015, 6:25 a.m.
Message ID <9b6051b0263332bc9f93.1421648737@laptop.local>
Download mbox | patch
Permalink /patch/7520/
State Accepted
Commit e563e0cfe08cd7cb46e1449e1a806cdc879e7fec
Headers show

Comments

Sean Farley - Jan. 19, 2015, 6:25 a.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1421648654 28800
#      Sun Jan 18 22:24:14 2015 -0800
# Branch stable
# Node ID 9b6051b0263332bc9f93ef5b855a73e9a3e55fab
# Parent  cb21ffd4b6c7e6572e6ab33fb3dfb18949b1ecd7
color: add missing 'dim' in _effects

It seems that this has been missing for people running in 'ansi' mode.
Matt Mackall - Jan. 20, 2015, 9:50 p.m.
On Sun, 2015-01-18 at 22:25 -0800, Sean Farley wrote:
> # HG changeset patch
> # User Sean Farley <sean.michael.farley@gmail.com>
> # Date 1421648654 28800
> #      Sun Jan 18 22:24:14 2015 -0800
> # Branch stable
> # Node ID 9b6051b0263332bc9f93ef5b855a73e9a3e55fab
> # Parent  cb21ffd4b6c7e6572e6ab33fb3dfb18949b1ecd7
> color: add missing 'dim' in _effects

Very borderline for the freeze. Queued, thanks.

Patch

diff --git a/hgext/color.py b/hgext/color.py
--- a/hgext/color.py
+++ b/hgext/color.py
@@ -154,11 +154,11 @@  command = cmdutil.command(cmdtable)
 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,
-            'italic': 3, 'underline': 4, 'inverse': 7,
+            'italic': 3, 'underline': 4, 'inverse': 7, 'dim': 2,
             'black_background': 40, 'red_background': 41,
             'green_background': 42, 'yellow_background': 43,
             'blue_background': 44, 'purple_background': 45,
             'cyan_background': 46, 'white_background': 47}