# HG changeset patch # User Martin von Zweigbergk # Date 1516001826 28800 # Node ID 5748f404dad3d4cc084624e4886c481c4fba8d99 # Parent 8cdb671dbd0b3e2e04ffa1dea7fecffb8bfda686 repair: drop unnecessary phase cache invalidation After stripping the revlogs, we have been invalidating the phase cache since bf7b8157c483. Later, in 8e3021fd1a44, I added a call to phasecache.filterunknown(). I apparently didn't realize it then, but I now think that that call made the existing phasecache.invalidate() call unnecessary, so this patch drops it. Both the test added in bf7b8157c483 and the entire evolve extension test suite indeed still pass. Differential Revision: https://phab.mercurial-scm.org/D1864 diff -r 8cdb671dbd0b -r 5748f404dad3 mercurial/repair.py --- a/mercurial/repair.py Mon Jan 15 15:20:02 2018 -0800 +++ b/mercurial/repair.py Sun Jan 14 23:37:06 2018 -0800 @@ -222,8 +222,6 @@ if not repo.ui.verbose: repo.ui.popbuffer() f.close() - repo._phasecache.invalidate() - with repo.transaction('repair') as tr: bmchanges = [(m, repo[newbmtarget].node()) for m in updatebm]