acl: 'util.never' can be used instead of a more complex expression

This commit is contained in:
Elifarley Callado Coelho Cruz 2012-05-18 13:50:02 -03:00
parent 1067ca9f4d
commit cec9c9df29

View File

@ -203,8 +203,7 @@ def buildmatch(ui, repo, user, key):
# 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']: