bookmark: use 'applychanges' in the mq extension
authorBoris Feld <boris.feld@octobus.net>
Mon, 10 Jul 2017 17:44:25 +0200
changeset 33489 870560c759ed
parent 33488 eb344bbac18c
child 33490 902fe63954a9
bookmark: use 'applychanges' in the mq extension
hgext/mq.py
--- a/hgext/mq.py	Mon Jul 10 17:37:48 2017 +0200
+++ b/hgext/mq.py	Mon Jul 10 17:44:25 2017 +0200
@@ -1834,9 +1834,7 @@
                     patchf.close()
 
                     marks = repo._bookmarks
-                    for bm in bmlist:
-                        marks[bm] = n
-                    marks.recordchange(tr)
+                    marks.applychanges(repo, tr, [(bm, n) for bm in bmlist])
                     tr.close()
 
                     self.applied.append(statusentry(n, patchfn))