Patchwork [07,of,11] configitems: register the 'hooks' config section

login
register
mail settings
Submitter Boris Feld
Date Oct. 13, 2017, 5:55 p.m.
Message ID <0824a3519c14d643a81d.1507917313@FB>
Download mbox | patch
Permalink /patch/24843/
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 1507905546 -7200
#      Fri Oct 13 16:39:06 2017 +0200
# Node ID 0824a3519c14d643a81dd4f718846f15045772ec
# Parent  3885ce0a46c11f714335aafa38876b4d0c0aed9b
# EXP-Topic config.register.ready
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 0824a3519c14
configitems: register the 'hooks' config section

Patch

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -446,6 +446,10 @@ 
 coreconfigitem('format', 'usestore',
     default=True,
 )
+coreconfigitem('hooks', '.*',
+    default=dynamicdefault,
+    generic=True,
+)
 coreconfigitem('hostsecurity', 'ciphers',
     default=None,
 )