450 allowbranches = buildmatch(ui, None, user, b'acl.allow.branches') |
449 allowbranches = buildmatch(ui, None, user, b'acl.allow.branches') |
451 denybranches = buildmatch(ui, None, user, b'acl.deny.branches') |
450 denybranches = buildmatch(ui, None, user, b'acl.deny.branches') |
452 allow = buildmatch(ui, repo, user, b'acl.allow') |
451 allow = buildmatch(ui, repo, user, b'acl.allow') |
453 deny = buildmatch(ui, repo, user, b'acl.deny') |
452 deny = buildmatch(ui, repo, user, b'acl.deny') |
454 |
453 |
455 for rev in pycompat.xrange(repo[node].rev(), len(repo)): |
454 for rev in range(repo[node].rev(), len(repo)): |
456 ctx = repo[rev] |
455 ctx = repo[rev] |
457 branch = ctx.branch() |
456 branch = ctx.branch() |
458 if denybranches and denybranches(branch): |
457 if denybranches and denybranches(branch): |
459 raise error.Abort( |
458 raise error.Abort( |
460 _(b'acl: user "%s" denied on branch "%s" (changeset "%s")') |
459 _(b'acl: user "%s" denied on branch "%s" (changeset "%s")') |