configitems: register the 'transplant.filter' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:44:29 +0200
changeset 34468 7bcce17b87e8
parent 34467 192f7b126ed2
child 34469 61275d0f6157
configitems: register the 'transplant.filter' config
hgext/transplant.py
--- a/hgext/transplant.py	Wed Oct 04 11:58:00 2017 -0400
+++ b/hgext/transplant.py	Fri Jun 30 03:44:29 2017 +0200
@@ -49,6 +49,13 @@
 # leave the attribute unspecified.
 testedwith = 'ships-with-hg-core'
 
+configtable = {}
+configitem = registrar.configitem(configtable)
+
+configitem('transplant', 'filter',
+    default=None,
+)
+
 class transplantentry(object):
     def __init__(self, lnode, rnode):
         self.lnode = lnode