##// END OF EJS Templates
match: remove match.never...
Matt Mackall -
r8682:cc7da5aa default
parent child Browse files
Show More
@@ -61,7 +61,7 b' def buildmatch(ui, repo, user, key):'
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):
@@ -106,10 +106,6 b' class always(match):'
106 def __init__(self, root, cwd):
106 def __init__(self, root, cwd):
107 match.__init__(self, root, cwd, [])
107 match.__init__(self, root, cwd, [])
108
108
109 class never(match):
110 def __init__(self, root, cwd):
111 match.__init__(self, root, cwd, [], exact = True)
112
113 def patkind(pat):
109 def patkind(pat):
114 return _patsplit(pat, None)[0]
110 return _patsplit(pat, None)[0]
115
111
General Comments 0
You need to be logged in to leave comments. Login now