mercurial/repair.py
changeset 33490 902fe63954a9
parent 33307 665271d601f5
child 33724 6626d12e7a85
child 34144 91f0677dc920
--- a/mercurial/repair.py	Mon Jul 10 17:44:25 2017 +0200
+++ b/mercurial/repair.py	Mon Jul 10 17:46:47 2017 +0200
@@ -219,11 +219,10 @@
             f.close()
         repo._phasecache.invalidate()
 
-        for m in updatebm:
-            bm[m] = repo[newbmtarget].node()
 
         with repo.transaction('repair') as tr:
-            bm.recordchange(tr)
+            bmchanges = [(m, repo[newbmtarget].node()) for m in updatebm]
+            bm.applychanges(repo, tr, bmchanges)
 
         # remove undo files
         for undovfs, undofile in repo.undofiles():