mercurial/localrepo.py
changeset 35736 29f57ce416ed
parent 35726 45b678bf3a78
child 35749 3a3b59bbe7ce
equal deleted inserted replaced
35735:693e3bcae19e 35736:29f57ce416ed
   760         return True
   760         return True
   761 
   761 
   762     __bool__ = __nonzero__
   762     __bool__ = __nonzero__
   763 
   763 
   764     def __len__(self):
   764     def __len__(self):
   765         return len(self.changelog)
   765         # no need to pay the cost of repoview.changelog
       
   766         unfi = self.unfiltered()
       
   767         return len(unfi.changelog)
   766 
   768 
   767     def __iter__(self):
   769     def __iter__(self):
   768         return iter(self.changelog)
   770         return iter(self.changelog)
   769 
   771 
   770     def revs(self, expr, *args):
   772     def revs(self, expr, *args):