comparison hgext/acl.py @ 45942:89a2afe31e82

formating: upgrade to black 20.8b1 This required a couple of small tweaks to un-confuse black, but now it works. Big formatting changes come from: * Dramatically improved collection-splitting logic upstream * Black having a strong (correct IMO) opinion that """ is better than ''' Differential Revision: https://phab.mercurial-scm.org/D9430
author Augie Fackler <raf@durin42.com>
date Fri, 27 Nov 2020 17:03:29 -0500
parents 9f70512ae2cf
children 6000f5b25c9b
comparison
equal deleted inserted replaced
45941:346af7687c6f 45942:89a2afe31e82
237 configtable = {} 237 configtable = {}
238 configitem = registrar.configitem(configtable) 238 configitem = registrar.configitem(configtable)
239 239
240 # deprecated config: acl.config 240 # deprecated config: acl.config
241 configitem( 241 configitem(
242 b'acl', b'config', default=None, 242 b'acl',
243 ) 243 b'config',
244 configitem( 244 default=None,
245 b'acl.groups', b'.*', default=None, generic=True, 245 )
246 ) 246 configitem(
247 configitem( 247 b'acl.groups',
248 b'acl.deny.branches', b'.*', default=None, generic=True, 248 b'.*',
249 ) 249 default=None,
250 configitem( 250 generic=True,
251 b'acl.allow.branches', b'.*', default=None, generic=True, 251 )
252 ) 252 configitem(
253 configitem( 253 b'acl.deny.branches',
254 b'acl.deny', b'.*', default=None, generic=True, 254 b'.*',
255 ) 255 default=None,
256 configitem( 256 generic=True,
257 b'acl.allow', b'.*', default=None, generic=True, 257 )
258 ) 258 configitem(
259 configitem( 259 b'acl.allow.branches',
260 b'acl', b'sources', default=lambda: [b'serve'], 260 b'.*',
261 default=None,
262 generic=True,
263 )
264 configitem(
265 b'acl.deny',
266 b'.*',
267 default=None,
268 generic=True,
269 )
270 configitem(
271 b'acl.allow',
272 b'.*',
273 default=None,
274 generic=True,
275 )
276 configitem(
277 b'acl',
278 b'sources',
279 default=lambda: [b'serve'],
261 ) 280 )
262 281
263 282
264 def _getusers(ui, group): 283 def _getusers(ui, group):
265 284