Show More
@@ -480,14 +480,14 b' class filestorage(object):' | |||
|
480 | 480 | |
|
481 | 481 | def headrevs(self): |
|
482 | 482 | # Assume all revisions are heads by default. |
|
483 | ishead = {rev: True for rev in self._indexbyrev} | |
|
483 | revishead = {rev: True for rev in self._indexbyrev} | |
|
484 | 484 | |
|
485 | 485 | for rev, entry in self._indexbyrev.items(): |
|
486 | 486 | # Unset head flag for all seen parents. |
|
487 | ishead[self.rev(entry[b'p1'])] = False | |
|
488 | ishead[self.rev(entry[b'p2'])] = False | |
|
487 | revishead[self.rev(entry[b'p1'])] = False | |
|
488 | revishead[self.rev(entry[b'p2'])] = False | |
|
489 | 489 | |
|
490 | return [rev for rev, ishead in sorted(ishead.items()) | |
|
490 | return [rev for rev, ishead in sorted(revishead.items()) | |
|
491 | 491 | if ishead] |
|
492 | 492 | |
|
493 | 493 | def heads(self, start=None, stop=None): |
General Comments 0
You need to be logged in to leave comments.
Login now