# HG changeset patch # User David Soria Parra # Date 1412605780 25200 # Node ID 90200e864ffc546cebd82d6967f46abb51ab17e4 # Parent b186b3ef4b54f51467b8e3c287a69211c8661643 repoview: remove hiddencache verification We have been running hiddencache verification since 3.1.1 and so far not received a bug report concerning it. Therefore we remove the verification code and make the hiddencache authoritive. That way we get the intended speedup. diff -r b186b3ef4b54 -r 90200e864ffc mercurial/repoview.py --- a/mercurial/repoview.py Mon Oct 06 08:18:03 2014 -0400 +++ b/mercurial/repoview.py Mon Oct 06 07:29:40 2014 -0700 @@ -13,7 +13,6 @@ import obsolete import struct import tags as tagsmod -from mercurial.i18n import _ def hideablerevs(repo): """Revisions candidates to be hidden @@ -138,14 +137,6 @@ blocked = cl.ancestors(_getstaticblockers(repo), inclusive=True) hidden = frozenset(r for r in hideable if r not in blocked) trywritehiddencache(repo, hideable, hidden) - elif repo.ui.configbool('experimental', 'verifyhiddencache', True): - blocked = cl.ancestors(_getstaticblockers(repo), inclusive=True) - computed = frozenset(r for r in hideable if r not in blocked) - if computed != hidden: - trywritehiddencache(repo, hideable, computed) - repo.ui.warn(_('Cache inconsistency detected. Please ' + - 'open an issue on http://bz.selenic.com.\n')) - hidden = computed # check if we have wd parents, bookmarks or tags pointing to hidden # changesets and remove those.