Patchwork [2,of,4] configitems: register the 'color.pagermode' config

login
register
mail settings
Submitter Boris Feld
Date July 13, 2017, 3:05 p.m.
Message ID <ad57894ea839e08f6b4f.1499958343@FB>
Download mbox | patch
Permalink /patch/22292/
State Accepted
Headers show

Comments

Boris Feld - July 13, 2017, 3:05 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1499895388 -7200
#      Wed Jul 12 23:36:28 2017 +0200
# Node ID ad57894ea839e08f6b4f2dd3eb5c779c4746202e
# Parent  afad2f9ae04d35cef5165b07a2987b0e5604924b
# EXP-Topic config.register.special-case
configitems: register the 'color.pagermode' config

Patch

diff -r afad2f9ae04d -r ad57894ea839 mercurial/configitems.py
--- a/mercurial/configitems.py	Wed Jul 12 23:36:10 2017 +0200
+++ b/mercurial/configitems.py	Wed Jul 12 23:36:28 2017 +0200
@@ -79,6 +79,9 @@ 
 coreconfigitem('color', 'mode',
     default='auto',
 )
+coreconfigitem('color', 'pagermode',
+    default=dynamicdefault,
+)
 coreconfigitem('devel', 'all-warnings',
     default=False,
 )