[PATCH 10 of 12] bookmark: use 'applychanges' in the mq extension

Boris Feld boris.feld at octobus.net
Fri Jul 14 13:54:08 EDT 2017


# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1499701465 -7200
#      Mon Jul 10 17:44:25 2017 +0200
# Node ID e8d6ea8639cdbdd8af729fbad09f508210e02723
# Parent  32399e89b8ed9662b07d6a656a447e6ef5bafc1b
# EXP-Topic tr.changes.bookmarks
bookmark: use 'applychanges' in the mq extension

diff -r 32399e89b8ed -r e8d6ea8639cd 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))


More information about the Mercurial-devel mailing list