[PATCH 5 of 5] acl: 'util.never' can be used instead of a more complex expression

elifarley at gmail.com elifarley at gmail.com
Mon May 21 15:26:31 CDT 2012


# HG changeset patch
# User Elifarley Callado Coelho Cruz
# Date 1337359802 10800
# Node ID 8b4b97b6af4dc411a92711e78110a3ecdecabc63
# Parent  70abc223b1f37971d00a9f6e353ec639bf79fef4
acl: 'util.never' can be used instead of a more complex expression

diff --git a/hgext/acl.py b/hgext/acl.py
--- a/hgext/acl.py
+++ b/hgext/acl.py
@@ -202,8 +202,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']:


More information about the Mercurial-devel mailing list