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

login
register
mail settings
Submitter Boris Feld
Date Oct. 13, 2017, 5:55 p.m.
Message ID <c577c2524d863b5649d3.1507917317@FB>
Download mbox | patch
Permalink /patch/24848/
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 1507490964 -7200
#      Sun Oct 08 21:29:24 2017 +0200
# Node ID c577c2524d863b5649d31ad84a15773deb9b2372
# Parent  8f3e9e9a61021e35a5798eef6368672506890bcf
# EXP-Topic config.register.ready
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r c577c2524d86
configitems: register the 'templates' section
Augie Fackler - Oct. 13, 2017, 7:53 p.m.
On Fri, Oct 13, 2017 at 07:55:17PM +0200, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld@octobus.net>
> # Date 1507490964 -7200
> #      Sun Oct 08 21:29:24 2017 +0200
> # Node ID c577c2524d863b5649d31ad84a15773deb9b2372
> # Parent  8f3e9e9a61021e35a5798eef6368672506890bcf
> # EXP-Topic config.register.ready
> # Available At https://bitbucket.org/octobus/mercurial-devel/
> #              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r c577c2524d86
> configitems: register the 'templates' section

queued, thanks, with the exception of the one patch I commented on (8
I believe)

Patch

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -716,6 +716,10 @@ 
 coreconfigitem('sparse', 'missingwarning',
     default=True,
 )
+coreconfigitem('templates', '.*',
+    default=None,
+    generic=True,
+)
 coreconfigitem('trusted', 'groups',
     default=list,
 )