changeset 35736 | 29f57ce416ed |
parent 35726 | 45b678bf3a78 |
child 35749 | 3a3b59bbe7ce |
--- a/mercurial/localrepo.py Thu Jan 18 21:18:10 2018 -0500 +++ b/mercurial/localrepo.py Fri Jan 19 21:39:11 2018 +0900 @@ -762,7 +762,9 @@ __bool__ = __nonzero__ def __len__(self): - return len(self.changelog) + # no need to pay the cost of repoview.changelog + unfi = self.unfiltered() + return len(unfi.changelog) def __iter__(self): return iter(self.changelog)