hgext/acl.py
changeset 8566 744d6322b05b
parent 8225 46293a0c7e9f
child 8567 fea40a677d43
--- a/hgext/acl.py	Sat May 23 17:04:41 2009 +0200
+++ b/hgext/acl.py	Sun May 24 02:56:14 2009 -0500
@@ -46,7 +46,7 @@
 #   ** = user6
 
 from mercurial.i18n import _
-from mercurial import util
+from mercurial import util, match
 import getpass
 
 def buildmatch(ui, repo, user, key):
@@ -60,8 +60,9 @@
     ui.debug(_('acl: %s enabled, %d entries for user %s\n') %
              (key, len(pats), user))
     if pats:
-        return util.matcher(repo.root, names=pats)[1]
-    return util.never
+        return match.match(repo.root, '', pats, [], [], 'glob')
+    return match.never(repo.root, '')
+
 
 def hook(ui, repo, hooktype, node=None, source=None, **kwargs):
     if hooktype != 'pretxnchangegroup':