comparison mercurial/match.py @ 24448:55c449345b10

match: add isexact() method to hide internals Comparing a function reference seems bad.
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 29 Oct 2014 08:43:39 -0700
parents d44d53bc9a1e
children 7797fadac0e8
comparison
equal deleted inserted replaced
24447:d44d53bc9a1e 24448:55c449345b10
168 168
169 def always(self): 169 def always(self):
170 '''Matcher will match everything and .files() will be empty 170 '''Matcher will match everything and .files() will be empty
171 - optimization might be possible and necessary.''' 171 - optimization might be possible and necessary.'''
172 return self._always 172 return self._always
173
174 def isexact(self):
175 return self.matchfn == self.exact
173 176
174 def exact(root, cwd, files): 177 def exact(root, cwd, files):
175 return match(root, cwd, files, exact=True) 178 return match(root, cwd, files, exact=True)
176 179
177 def always(root, cwd): 180 def always(root, cwd):