Skip to content
Snippets Groups Projects
Commit 56745e58 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

phases: initialize number of loaded revisions to 0

As it isn't a revision number, an empty value should be 0, not -1.
parent 98cc1210
No related branches found
No related tags found
No related merge requests found
......@@ -203,7 +203,7 @@
if _load:
# Cheap trick to allow shallow-copy without copy module
self.phaseroots, self.dirty = _readroots(repo, phasedefaults)
self._loadedrevslen = nullrev
self._loadedrevslen = 0
self._phasesets = None
self.filterunknown(repo)
self.opener = repo.svfs
......@@ -294,7 +294,7 @@
self._computephaserevspure(repo)
def invalidate(self):
self._loadedrevslen = nullrev
self._loadedrevslen = 0
self._phasesets = None
def phase(self, repo, rev):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment