--- a/mercurial/match.py Sat May 16 11:28:04 2015 -0700
+++ b/mercurial/match.py Fri May 15 15:43:26 2015 -0700
@@ -186,6 +186,14 @@
- optimization might be possible and necessary.'''
return self._always
+ def ispartial(self):
+ '''True if the matcher won't always match.
+
+ Although it's just the inverse of _always in this implementation,
+ an extenion such as narrowhg might make it return something
+ slightly different.'''
+ return not self._always
+
def isexact(self):
return self.matchfn == self.exact