Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 38612: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 |
comparison
equal
deleted
inserted
replaced
38611:0ba4cf3f088f | 38612:760cc5dc01e8 |
---|---|
179 def phasestr(self): | 179 def phasestr(self): |
180 return phases.phasenames[self.phase()] | 180 return phases.phasenames[self.phase()] |
181 def mutable(self): | 181 def mutable(self): |
182 return self.phase() > phases.public | 182 return self.phase() > phases.public |
183 | 183 |
184 def getfileset(self, expr): | 184 def matchfileset(self, expr, badfn=None): |
185 return fileset.getfileset(self, expr) | 185 return fileset.match(self, expr, badfn=badfn) |
186 | 186 |
187 def obsolete(self): | 187 def obsolete(self): |
188 """True if the changeset is obsolete""" | 188 """True if the changeset is obsolete""" |
189 return self.rev() in obsmod.getrevs(self._repo, 'obsolete') | 189 return self.rev() in obsmod.getrevs(self._repo, 'obsolete') |
190 | 190 |