Mercurial > hg-stable
comparison mercurial/repair.py @ 35706:5748f404dad3
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
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 14 Jan 2018 23:37:06 -0800 |
parents | 2844c4bd5a39 |
children | 54074a82e050 |
comparison
equal
deleted
inserted
replaced
35705:8cdb671dbd0b | 35706:5748f404dad3 |
---|---|
220 bundle2.applybundle(repo, gen, tr, source='strip', | 220 bundle2.applybundle(repo, gen, tr, source='strip', |
221 url=tmpbundleurl) | 221 url=tmpbundleurl) |
222 if not repo.ui.verbose: | 222 if not repo.ui.verbose: |
223 repo.ui.popbuffer() | 223 repo.ui.popbuffer() |
224 f.close() | 224 f.close() |
225 repo._phasecache.invalidate() | |
226 | |
227 | 225 |
228 with repo.transaction('repair') as tr: | 226 with repo.transaction('repair') as tr: |
229 bmchanges = [(m, repo[newbmtarget].node()) for m in updatebm] | 227 bmchanges = [(m, repo[newbmtarget].node()) for m in updatebm] |
230 bm.applychanges(repo, tr, bmchanges) | 228 bm.applychanges(repo, tr, bmchanges) |
231 | 229 |