match: remove match.never
authorMatt Mackall <mpm@selenic.com>
Sun, 31 May 2009 17:54:18 -0500
changeset 8682 cc7da5aae4cd
parent 8681 26f133267cd7
child 8683 99eb4dcb37ce
match: remove match.never Only one user, can be translated to match.exact()
hgext/acl.py
mercurial/match.py
--- a/hgext/acl.py	Sun May 31 17:54:18 2009 -0500
+++ b/hgext/acl.py	Sun May 31 17:54:18 2009 -0500
@@ -61,7 +61,7 @@
              (key, len(pats), user))
     if pats:
         return match.match(repo.root, '', pats)
-    return match.never(repo.root, '')
+    return match.exact(repo.root, '', [])
 
 
 def hook(ui, repo, hooktype, node=None, source=None, **kwargs):
--- a/mercurial/match.py	Sun May 31 17:54:18 2009 -0500
+++ b/mercurial/match.py	Sun May 31 17:54:18 2009 -0500
@@ -106,10 +106,6 @@
     def __init__(self, root, cwd):
         match.__init__(self, root, cwd, [])
 
-class never(match):
-    def __init__(self, root, cwd):
-        match.__init__(self, root, cwd, [], exact = True)
-
 def patkind(pat):
     return _patsplit(pat, None)[0]