comparison hgext/transplant.py @ 34468:7bcce17b87e8

configitems: register the 'transplant.filter' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:44:29 +0200
parents 46ba2cdda476
children 61275d0f6157
comparison
equal deleted inserted replaced
34467:192f7b126ed2 34468:7bcce17b87e8
46 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for 46 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
47 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should 47 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
48 # be specifying the version(s) of Mercurial they are tested with, or 48 # be specifying the version(s) of Mercurial they are tested with, or
49 # leave the attribute unspecified. 49 # leave the attribute unspecified.
50 testedwith = 'ships-with-hg-core' 50 testedwith = 'ships-with-hg-core'
51
52 configtable = {}
53 configitem = registrar.configitem(configtable)
54
55 configitem('transplant', 'filter',
56 default=None,
57 )
51 58
52 class transplantentry(object): 59 class transplantentry(object):
53 def __init__(self, lnode, rnode): 60 def __init__(self, lnode, rnode):
54 self.lnode = lnode 61 self.lnode = lnode
55 self.rnode = rnode 62 self.rnode = rnode