changeset 36381:2827fa74adbc

py3: pass ctx.rev() instead of ctx in range()
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 23 Feb 2018 18:04:33 +0530
parents 2bff5f05b01b
children b4d1c09b754b
files hgext/acl.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):