##// END OF EJS Templates
bookmark: use 'applychanges' in 'repair.strip'
Boris Feld -
r33490:902fe639 default
parent child Browse files
Show More
@@ -219,11 +219,10 b' def strip(ui, repo, nodelist, backup=Tru'
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():
General Comments 0
You need to be logged in to leave comments. Login now