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]