hgext/acl.py
changeset 19872 681f7b9213a4
parent 17537 31f32a96e1e3
child 25186 80c5b2666a96
equal deleted inserted replaced
19871:6e74632170d3 19872:681f7b9213a4
   282 
   282 
   283     ui.debug('acl: checking access for user "%s"\n' % user)
   283     ui.debug('acl: checking access for user "%s"\n' % user)
   284 
   284 
   285     cfg = ui.config('acl', 'config')
   285     cfg = ui.config('acl', 'config')
   286     if cfg:
   286     if cfg:
   287         ui.readconfig(cfg, sections = ['acl.groups', 'acl.allow.branches',
   287         ui.readconfig(cfg, sections=['acl.groups', 'acl.allow.branches',
   288         'acl.deny.branches', 'acl.allow', 'acl.deny'])
   288             'acl.deny.branches', 'acl.allow', 'acl.deny'])
   289 
   289 
   290     allowbranches = buildmatch(ui, None, user, 'acl.allow.branches')
   290     allowbranches = buildmatch(ui, None, user, 'acl.allow.branches')
   291     denybranches = buildmatch(ui, None, user, 'acl.deny.branches')
   291     denybranches = buildmatch(ui, None, user, 'acl.deny.branches')
   292     allow = buildmatch(ui, repo, user, 'acl.allow')
   292     allow = buildmatch(ui, repo, user, 'acl.allow')
   293     deny = buildmatch(ui, repo, user, 'acl.deny')
   293     deny = buildmatch(ui, repo, user, 'acl.deny')