changeset 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 26f133267cd7
children 99eb4dcb37ce
files hgext/acl.py mercurial/match.py
diffstat 2 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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]