Patchwork [05,of,11] configitems: register the 'defaults' section

login
register
mail settings
Submitter Boris Feld
Date Oct. 13, 2017, 5:55 p.m.
Message ID <a9c5344860a24f38007c.1507917311@FB>
Download mbox | patch
Permalink /patch/24841/
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 1507487991 -7200
#      Sun Oct 08 20:39:51 2017 +0200
# Node ID a9c5344860a24f38007c9f25cb91a5304747391b
# Parent  863c2407bfabe9b23b28d01582f53d318b6ae9fc
# EXP-Topic config.register.ready
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r a9c5344860a2
configitems: register the 'defaults' section

Patch

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -189,6 +189,10 @@ 
 coreconfigitem('debug', 'dirstate.delaywrite',
     default=0,
 )
+coreconfigitem('defaults', '.*',
+    default=None,
+    generic=True,
+)
 coreconfigitem('devel', 'all-warnings',
     default=False,
 )