Mercurial > hg
changeset 22773:90200e864ffc
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.
author | David Soria Parra <davidsp@fb.com> |
---|---|
date | Mon, 06 Oct 2014 07:29:40 -0700 |
parents | b186b3ef4b54 |
children | b17fd992d606 |
files | mercurial/repoview.py |
diffstat | 1 files changed, 0 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- 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.