# HG changeset patch # User Mike Hommey # Date 1409481783 -32400 # Node ID e1d5fcab58b6c135c0e26546af2baf1a0c39f978 # Parent 816be4ca4ae2f5c4d4445eeb66ba9a6146db12e4 repoview: fix typo in repoview.changelog Incidentally, this avoids the changelog cache being invalidated each time it's accessed on a repoview. On a filtering experiment on a repository the size of mozilla-central, this makes a significant difference: Before, running hg log -l 10 --time with about 8k changesets filtered out: time: real 1.490 secs (user 1.450+0.000 sys 0.040+0.000) After: time: real 0.540 secs (user 0.530+0.000 sys 0.010+0.000) diff -r 816be4ca4ae2 -r e1d5fcab58b6 mercurial/repoview.py --- a/mercurial/repoview.py Tue Aug 19 16:57:02 2014 -0700 +++ b/mercurial/repoview.py Sun Aug 31 19:43:03 2014 +0900 @@ -189,7 +189,7 @@ # without change in the cachekey. oldfilter = cl.filteredrevs try: - cl.filterrevs = () # disable filtering for tip + cl.filteredrevs = () # disable filtering for tip curkey = (len(cl), cl.tip(), hash(oldfilter)) finally: cl.filteredrevs = oldfilter