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