mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
acl: 'util.never' can be used instead of a more complex expression
This commit is contained in:
parent
1067ca9f4d
commit
cec9c9df29
@ -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']:
|
||||
|
Loading…
Reference in New Issue
Block a user