##// END OF EJS Templates
simplestorerepo: avoid shadowing dict in list comprehension over dict...
Augie Fackler -
r37359:d62d2e34 default
parent child Browse files
Show More
@@ -480,14 +480,14 b' class filestorage(object):'
480
480
481 def headrevs(self):
481 def headrevs(self):
482 # Assume all revisions are heads by default.
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 for rev, entry in self._indexbyrev.items():
485 for rev, entry in self._indexbyrev.items():
486 # Unset head flag for all seen parents.
486 # Unset head flag for all seen parents.
487 ishead[self.rev(entry[b'p1'])] = False
487 revishead[self.rev(entry[b'p1'])] = False
488 ishead[self.rev(entry[b'p2'])] = 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 if ishead]
491 if ishead]
492
492
493 def heads(self, start=None, stop=None):
493 def heads(self, start=None, stop=None):
General Comments 0
You need to be logged in to leave comments. Login now