hgext/acl.py
changeset 36412 2827fa74adbc
parent 36408 39212037e65e
child 36442 03eff66adb3b
equal deleted inserted replaced
36411:2bff5f05b01b 36412:2827fa74adbc
   354     allowbranches = buildmatch(ui, None, user, 'acl.allow.branches')
   354     allowbranches = buildmatch(ui, None, user, 'acl.allow.branches')
   355     denybranches = buildmatch(ui, None, user, 'acl.deny.branches')
   355     denybranches = buildmatch(ui, None, user, 'acl.deny.branches')
   356     allow = buildmatch(ui, repo, user, 'acl.allow')
   356     allow = buildmatch(ui, repo, user, 'acl.allow')
   357     deny = buildmatch(ui, repo, user, 'acl.deny')
   357     deny = buildmatch(ui, repo, user, 'acl.deny')
   358 
   358 
   359     for rev in xrange(repo[node], len(repo)):
   359     for rev in xrange(repo[node].rev(), len(repo)):
   360         ctx = repo[rev]
   360         ctx = repo[rev]
   361         branch = ctx.branch()
   361         branch = ctx.branch()
   362         if denybranches and denybranches(branch):
   362         if denybranches and denybranches(branch):
   363             raise error.Abort(_('acl: user "%s" denied on branch "%s"'
   363             raise error.Abort(_('acl: user "%s" denied on branch "%s"'
   364                                ' (changeset "%s")')
   364                                ' (changeset "%s")')