Patchwork [1,of,2] configitems: register the 'transplant.filter' config

login
register
mail settings
Submitter Boris Feld
Date Oct. 4, 2017, 1:43 p.m.
Message ID <3d3e64d40c3a32fc7ada.1507124600@FB>
Download mbox | patch
Permalink /patch/24473/
State Accepted
Headers show

Comments

Boris Feld - Oct. 4, 2017, 1:43 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498787069 -7200
#      Fri Jun 30 03:44:29 2017 +0200
# Node ID 3d3e64d40c3a32fc7ada6c00ee56da35bf992651
# Parent  2fd06499dc8e6a5a784b1334b925c289d7b54e4e
# EXP-Topic config.register.transplant
configitems: register the 'transplant.filter' config
Yuya Nishihara - Oct. 5, 2017, 1:15 p.m.
On Wed, 04 Oct 2017 15:43:20 +0200, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld@octobus.net>
> # Date 1498787069 -7200
> #      Fri Jun 30 03:44:29 2017 +0200
> # Node ID 3d3e64d40c3a32fc7ada6c00ee56da35bf992651
> # Parent  2fd06499dc8e6a5a784b1334b925c289d7b54e4e
> # EXP-Topic config.register.transplant
> configitems: register the 'transplant.filter' config

Queued, thanks.

Patch

diff -r 2fd06499dc8e -r 3d3e64d40c3a hgext/transplant.py
--- a/hgext/transplant.py	Thu Aug 24 18:40:30 2017 +0200
+++ 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