##// END OF EJS Templates
phase: rename getphaserevs to loadphaserevs...
Pierre-Yves David -
r25611:d89045a6 default
parent child Browse files
Show More
@@ -194,7 +194,8 b' class phasecache(object):'
194 for rev in repo.changelog.descendants(roots):
194 for rev in repo.changelog.descendants(roots):
195 revs[rev] = phase
195 revs[rev] = phase
196
196
197 def getphaserevs(self, repo):
197 def loadphaserevs(self, repo):
198 """ensure phase information is loaded in the object"""
198 if self._phaserevs is None:
199 if self._phaserevs is None:
199 try:
200 try:
200 if repo.ui.configbool('experimental',
201 if repo.ui.configbool('experimental',
@@ -205,7 +206,6 b' class phasecache(object):'
205 self._phaserevs, self._phasesets = res
206 self._phaserevs, self._phasesets = res
206 except AttributeError:
207 except AttributeError:
207 self._computephaserevspure(repo)
208 self._computephaserevspure(repo)
208 return self._phaserevs
209
209
210 def invalidate(self):
210 def invalidate(self):
211 self._phaserevs = None
211 self._phaserevs = None
@@ -233,7 +233,7 b' class phasecache(object):'
233 raise ValueError(_('cannot lookup negative revision'))
233 raise ValueError(_('cannot lookup negative revision'))
234 if self._phaserevs is None or rev >= len(self._phaserevs):
234 if self._phaserevs is None or rev >= len(self._phaserevs):
235 self.invalidate()
235 self.invalidate()
236 self._phaserevs = self.getphaserevs(repo)
236 self.loadphaserevs(repo)
237 return self._phaserevs[rev]
237 return self._phaserevs[rev]
238
238
239 def write(self):
239 def write(self):
General Comments 0
You need to be logged in to leave comments. Login now