Mercurial > hg
comparison mercurial/repair.py @ 33490:902fe63954a9
bookmark: use 'applychanges' in 'repair.strip'
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 10 Jul 2017 17:46:47 +0200 |
parents | 665271d601f5 |
children | 6626d12e7a85 91f0677dc920 |
comparison
equal
deleted
inserted
replaced
33489:870560c759ed | 33490:902fe63954a9 |
---|---|
217 if not repo.ui.verbose: | 217 if not repo.ui.verbose: |
218 repo.ui.popbuffer() | 218 repo.ui.popbuffer() |
219 f.close() | 219 f.close() |
220 repo._phasecache.invalidate() | 220 repo._phasecache.invalidate() |
221 | 221 |
222 for m in updatebm: | |
223 bm[m] = repo[newbmtarget].node() | |
224 | 222 |
225 with repo.transaction('repair') as tr: | 223 with repo.transaction('repair') as tr: |
226 bm.recordchange(tr) | 224 bmchanges = [(m, repo[newbmtarget].node()) for m in updatebm] |
225 bm.applychanges(repo, tr, bmchanges) | |
227 | 226 |
228 # remove undo files | 227 # remove undo files |
229 for undovfs, undofile in repo.undofiles(): | 228 for undovfs, undofile in repo.undofiles(): |
230 try: | 229 try: |
231 undovfs.unlink(undofile) | 230 undovfs.unlink(undofile) |