# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-02-23 12:34:33 # Node ID 2827fa74adbccbb5e2db6cc47f3ad0990f229e2b # Parent 2bff5f05b01b4785efa34a21a029acd9dddd2206 py3: pass ctx.rev() instead of ctx in range() diff --git a/hgext/acl.py b/hgext/acl.py --- a/hgext/acl.py +++ b/hgext/acl.py @@ -356,7 +356,7 @@ def hook(ui, repo, hooktype, node=None, 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):