comparison hgext3rd/topic/__init__.py @ 3287:4303a46b4167 mercurial-4.3

test-compat: merge stable into mercurial-4.3
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 11 Dec 2017 16:32:03 +0100
parents 703e8398ac57
children 62f742d144da
comparison
equal deleted inserted replaced
3286:76c447d88d9a 3287:4303a46b4167
179 testedwith = '4.1.3 4.2.3 4.3.3 4.4.1' 179 testedwith = '4.1.3 4.2.3 4.3.3 4.4.1'
180 minimumhgversion = '4.1' 180 minimumhgversion = '4.1'
181 buglink = 'https://bz.mercurial-scm.org/' 181 buglink = 'https://bz.mercurial-scm.org/'
182 182
183 if util.safehasattr(registrar, 'configitem'): 183 if util.safehasattr(registrar, 'configitem'):
184
185 from mercurial import configitems
186
184 configtable = {} 187 configtable = {}
185 configitem = registrar.configitem(configtable) 188 configitem = registrar.configitem(configtable)
186 189
187 configitem('experimental', 'enforce-topic', 190 configitem('experimental', 'enforce-topic',
188 default=False, 191 default=False,
198 ) 201 )
199 configitem('_internal', 'keep-topic', 202 configitem('_internal', 'keep-topic',
200 default=False, 203 default=False,
201 ) 204 )
202 configitem('experimental', 'topic-mode.server', 205 configitem('experimental', 'topic-mode.server',
203 default=configitem.dynamicdefault, 206 default=configitems.dynamicdefault,
204 ) 207 )
205 208
206 def extsetup(ui): 209 def extsetup(ui):
207 # register config that strictly belong to other code (thg, core, etc) 210 # register config that strictly belong to other code (thg, core, etc)
208 # 211 #