Patchwork [11,of,14] configitems: register the 'keywordset.svn' config

login
register
mail settings
Submitter Boris Feld
Date Oct. 6, 2017, 9:22 a.m.
Message ID <6c705bf6a8ff9cd91769.1507281747@FB>
Download mbox | patch
Permalink /patch/24595/
State Accepted
Headers show

Comments

Boris Feld - Oct. 6, 2017, 9:22 a.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498786970 -7200
#      Fri Jun 30 03:42:50 2017 +0200
# Node ID 6c705bf6a8ff9cd91769e547b3d8c2dae5c5c9c5
# Parent  b8f74c4d188f9c581923c81635b048cd07a15cd4
# EXP-Topic config.register.keyword
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 6c705bf6a8ff
configitems: register the 'keywordset.svn' config

Patch

diff -r b8f74c4d188f -r 6c705bf6a8ff hgext/keyword.py
--- a/hgext/keyword.py	Fri Jun 30 03:42:35 2017 +0200
+++ b/hgext/keyword.py	Fri Jun 30 03:42:50 2017 +0200
@@ -143,6 +143,12 @@ 
 
 templatefilter = registrar.templatefilter()
 
+configtable = {}
+configitem = registrar.configitem(configtable)
+
+configitem('keywordset', 'svn',
+    default=False,
+)
 # date like in cvs' $Date
 @templatefilter('utcdate')
 def utcdate(text):