repair: drop unnecessary phase cache invalidation
authorMartin von Zweigbergk <martinvonz@google.com>
Sun, 14 Jan 2018 23:37:06 -0800
changeset 35706 5748f404dad3
parent 35705 8cdb671dbd0b
child 35707 54074a82e050
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
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]