comparison hgext/acl.py @ 8682:cc7da5aae4cd

match: remove match.never Only one user, can be translated to match.exact()
author Matt Mackall <mpm@selenic.com>
date Sun, 31 May 2009 17:54:18 -0500
parents fea40a677d43
children b30775386d40
comparison
equal deleted inserted replaced
8681:26f133267cd7 8682:cc7da5aae4cd
59 if user in users.replace(',', ' ').split()] 59 if user in users.replace(',', ' ').split()]
60 ui.debug(_('acl: %s enabled, %d entries for user %s\n') % 60 ui.debug(_('acl: %s enabled, %d entries for user %s\n') %
61 (key, len(pats), user)) 61 (key, len(pats), user))
62 if pats: 62 if pats:
63 return match.match(repo.root, '', pats) 63 return match.match(repo.root, '', pats)
64 return match.never(repo.root, '') 64 return match.exact(repo.root, '', [])
65 65
66 66
67 def hook(ui, repo, hooktype, node=None, source=None, **kwargs): 67 def hook(ui, repo, hooktype, node=None, source=None, **kwargs):
68 if hooktype != 'pretxnchangegroup': 68 if hooktype != 'pretxnchangegroup':
69 raise util.Abort(_('config error - hook type "%s" cannot stop ' 69 raise util.Abort(_('config error - hook type "%s" cannot stop '