Show More
@@ -179,22 +179,25 b' class phasecache(object):' | |||
|
179 | 179 | nativeroots.append(map(repo.changelog.rev, self.phaseroots[phase])) |
|
180 | 180 | return repo.changelog.computephases(nativeroots) |
|
181 | 181 | |
|
182 | def computephaserevspure(self, repo): | |
|
183 | repo = repo.unfiltered() | |
|
184 | revs = [public] * len(repo.changelog) | |
|
185 | self._phaserevs = revs | |
|
186 | self._populatephaseroots(repo) | |
|
187 | for phase in trackedphases: | |
|
188 | roots = map(repo.changelog.rev, self.phaseroots[phase]) | |
|
189 | if roots: | |
|
190 | for rev in roots: | |
|
191 | revs[rev] = phase | |
|
192 | for rev in repo.changelog.descendants(roots): | |
|
193 | revs[rev] = phase | |
|
194 | ||
|
182 | 195 | def getphaserevs(self, repo): |
|
183 | 196 | if self._phaserevs is None: |
|
184 | 197 | try: |
|
185 | 198 | self._phaserevs = self.getphaserevsnative(repo) |
|
186 | 199 | except AttributeError: |
|
187 | repo = repo.unfiltered() | |
|
188 | revs = [public] * len(repo.changelog) | |
|
189 | self._phaserevs = revs | |
|
190 | self._populatephaseroots(repo) | |
|
191 | for phase in trackedphases: | |
|
192 | roots = map(repo.changelog.rev, self.phaseroots[phase]) | |
|
193 | if roots: | |
|
194 | for rev in roots: | |
|
195 | revs[rev] = phase | |
|
196 | for rev in repo.changelog.descendants(roots): | |
|
197 | revs[rev] = phase | |
|
200 | self.computephaserevspure(repo) | |
|
198 | 201 | return self._phaserevs |
|
199 | 202 | |
|
200 | 203 | def invalidate(self): |
General Comments 0
You need to be logged in to leave comments.
Login now