Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/match.py Wed Nov 19 15:56:58 2014 -0800 +++ b/mercurial/match.py Wed Oct 29 08:43:39 2014 -0700 @@ -171,6 +171,9 @@ - optimization might be possible and necessary.''' return self._always + def isexact(self): + return self.matchfn == self.exact + def exact(root, cwd, files): return match(root, cwd, files, exact=True)