Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 38613:760cc5dc01e8
fileset: restrict getfileset() to not return a computed set (API)
And rename the functions accordingly. fileset.match() will be changed to
not compute the initial subset.
test-glog*.t get back to the state before 9f9ffe5f687c "match: compose
'set:' pattern as matcher."
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 09 Jun 2018 20:53:12 +0900 |
parents | a936d1368fc5 |
children | 160da69ba1bf |
line wrap: on
line diff
--- a/mercurial/context.py Sat Jun 09 22:04:07 2018 +0900 +++ b/mercurial/context.py Sat Jun 09 20:53:12 2018 +0900 @@ -181,8 +181,8 @@ def mutable(self): return self.phase() > phases.public - def getfileset(self, expr): - return fileset.getfileset(self, expr) + def matchfileset(self, expr, badfn=None): + return fileset.match(self, expr, badfn=badfn) def obsolete(self): """True if the changeset is obsolete"""