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.
This commit is contained in:
David Soria Parra 2014-10-06 07:29:40 -07:00
parent 88894fbfa7
commit fdc87e21e5

View File

@ -13,7 +13,6 @@ import util
import obsolete
import struct
import tags as tagsmod
from mercurial.i18n import _
def hideablerevs(repo):
"""Revisions candidates to be hidden
@ -138,14 +137,6 @@ def computehidden(repo):
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.