diff -r 2bff5f05b01b -r 2827fa74adbc hgext/acl.py --- a/hgext/acl.py Fri Feb 23 18:03:58 2018 +0530 +++ b/hgext/acl.py Fri Feb 23 18:04:33 2018 +0530 @@ -356,7 +356,7 @@ allow = buildmatch(ui, repo, user, 'acl.allow') deny = buildmatch(ui, repo, user, 'acl.deny') - for rev in xrange(repo[node], len(repo)): + for rev in xrange(repo[node].rev(), len(repo)): ctx = repo[rev] branch = ctx.branch() if denybranches and denybranches(branch):