Patchwork [03,of,11] configitems: register the 'color' section

login
register
mail settings
Submitter Boris Feld
Date Oct. 13, 2017, 5:55 p.m.
Message ID <78e6b5c73ed70bd98a0a.1507917309@FB>
Download mbox | patch
Permalink /patch/24839/
State Accepted
Headers show

Comments

Boris Feld - Oct. 13, 2017, 5:55 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1507625368 -7200
#      Tue Oct 10 10:49:28 2017 +0200
# Node ID 78e6b5c73ed70bd98a0aff7a4f1757a99ea11982
# Parent  19afa27ae88e1d42aa285d808a736d0c623bdf86
# EXP-Topic config.register.ready
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 78e6b5c73ed7
configitems: register the 'color' section

Patch

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -160,6 +160,10 @@ 
 coreconfigitem('cmdserver', 'log',
     default=None,
 )
+coreconfigitem('color', '.*',
+    default=None,
+    generic=True,
+)
 coreconfigitem('color', 'mode',
     default='auto',
 )