From fdc87e21e503b2b733a486609d643fe5e4da4c07 Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Mon, 6 Oct 2014 07:29:40 -0700 Subject: [PATCH] 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. --- mercurial/repoview.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/mercurial/repoview.py b/mercurial/repoview.py index 71eb1fe7bf..adc2050569 100644 --- a/mercurial/repoview.py +++ b/mercurial/repoview.py @@ -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.