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

login
register
mail settings
Submitter Boris Feld
Date July 14, 2017, 5:54 p.m.
Message ID <e8d6ea8639cdbdd8af72.1500054848@FB>
Download mbox | patch
Permalink /patch/22369/
State Accepted
Headers show

Comments

Boris Feld - July 14, 2017, 5:54 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@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

Patch

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))