acl: 'util.never' can be used instead of a more complex expression
authorElifarley Callado Coelho Cruz
Fri, 18 May 2012 13:50:02 -0300
changeset 16767 363bde4224c8
parent 16766 9d778f80ad2a
child 16769 e406b9656da3
acl: 'util.never' can be used instead of a more complex expression
hgext/acl.py
--- a/hgext/acl.py	Fri May 18 13:47:44 2012 -0300
+++ b/hgext/acl.py	Fri May 18 13:50:02 2012 -0300
@@ -203,8 +203,7 @@
     # Path-based ACL
     if pats:
         return match.match(repo.root, '', pats)
-    return match.exact(repo.root, '', [])
-
+    return util.never
 
 def hook(ui, repo, hooktype, node=None, source=None, **kwargs):
     if hooktype not in ['pretxnchangegroup', 'pretxncommit']: