comparison mercurial/context.py @ 18382:f3b21beb9802

filtering: rename filters to their antonyms Now that changelog filtering is in place, it's become evident that naming the filters according to the set of revs _not_ included in the filtered changelog is confusing. This is especially evident in the collaborative branch cache scheme. This changes the names of the filters to reflect the revs that _are_ included: hidden -> visible unserved -> served mutable -> immutable impactable -> base repoview.filteredrevs is renamed to filterrevs, so that callers read a bit more sensibly, e.g.: filterrevs('visible') # filter revs according to what's visible
author Kevin Bullock <kbullock@ringworld.org>
date Sun, 13 Jan 2013 01:39:16 -0600
parents 6252b4f1c4b4
children 5d6ee2494f63
comparison
equal deleted inserted replaced
18381:7ac4449f0f39 18382:f3b21beb9802
210 def phasestr(self): 210 def phasestr(self):
211 return phases.phasenames[self.phase()] 211 return phases.phasenames[self.phase()]
212 def mutable(self): 212 def mutable(self):
213 return self.phase() > phases.public 213 return self.phase() > phases.public
214 def hidden(self): 214 def hidden(self):
215 return self._rev in repoview.filteredrevs(self._repo, 'hidden') 215 return self._rev in repoview.filterrevs(self._repo, 'visible')
216 216
217 def parents(self): 217 def parents(self):
218 """return contexts for each parent changeset""" 218 """return contexts for each parent changeset"""
219 return self._parents 219 return self._parents
220 220