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")') |