##// END OF EJS Templates
phases: initialize number of loaded revisions to 0...
Yuya Nishihara -
r35458:56745e58 default
parent child Browse files
Show More
@@ -203,7 +203,7 b' class phasecache(object):'
203 if _load:
203 if _load:
204 # Cheap trick to allow shallow-copy without copy module
204 # Cheap trick to allow shallow-copy without copy module
205 self.phaseroots, self.dirty = _readroots(repo, phasedefaults)
205 self.phaseroots, self.dirty = _readroots(repo, phasedefaults)
206 self._loadedrevslen = nullrev
206 self._loadedrevslen = 0
207 self._phasesets = None
207 self._phasesets = None
208 self.filterunknown(repo)
208 self.filterunknown(repo)
209 self.opener = repo.svfs
209 self.opener = repo.svfs
@@ -294,7 +294,7 b' class phasecache(object):'
294 self._computephaserevspure(repo)
294 self._computephaserevspure(repo)
295
295
296 def invalidate(self):
296 def invalidate(self):
297 self._loadedrevslen = nullrev
297 self._loadedrevslen = 0
298 self._phasesets = None
298 self._phasesets = None
299
299
300 def phase(self, repo, rev):
300 def phase(self, repo, rev):
General Comments 0
You need to be logged in to leave comments. Login now