Mercurial > hg
comparison hgext/acl.py @ 33185:8b109c61bc11
configitems: register the 'acl.config' config
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:26:57 +0200 |
parents | d5883fd055c6 |
children | 478cb17cc610 |
comparison
equal
deleted
inserted
replaced
33184:649f3b0495c8 | 33185:8b109c61bc11 |
---|---|
197 | 197 |
198 from mercurial.i18n import _ | 198 from mercurial.i18n import _ |
199 from mercurial import ( | 199 from mercurial import ( |
200 error, | 200 error, |
201 match, | 201 match, |
202 registrar, | |
202 util, | 203 util, |
203 ) | 204 ) |
204 | 205 |
205 urlreq = util.urlreq | 206 urlreq = util.urlreq |
206 | 207 |
207 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | 208 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
208 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 209 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
209 # be specifying the version(s) of Mercurial they are tested with, or | 210 # be specifying the version(s) of Mercurial they are tested with, or |
210 # leave the attribute unspecified. | 211 # leave the attribute unspecified. |
211 testedwith = 'ships-with-hg-core' | 212 testedwith = 'ships-with-hg-core' |
213 | |
214 configtable = {} | |
215 configitem = registrar.configitem(configtable) | |
216 | |
217 # deprecated config: acl.config | |
218 configitem('acl', 'config', | |
219 default=None, | |
220 ) | |
212 | 221 |
213 def _getusers(ui, group): | 222 def _getusers(ui, group): |
214 | 223 |
215 # First, try to use group definition from section [acl.groups] | 224 # First, try to use group definition from section [acl.groups] |
216 hgrcusers = ui.configlist('acl.groups', group) | 225 hgrcusers = ui.configlist('acl.groups', group) |