changeset 33489:870560c759ed

bookmark: use 'applychanges' in the mq extension
author Boris Feld <boris.feld@octobus.net>
date Mon, 10 Jul 2017 17:44:25 +0200
parents eb344bbac18c
children 902fe63954a9
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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))