# HG changeset patch # User Boris Feld # Date 2017-07-10 15:22:17 # Node ID 2a8ce4e79a47a8a90924c54ba8a0e07317d4f41b # Parent 146c0371eadf59ba0e59451f6d42afc366997bdc bookmark: use 'applychanges' when updating from a remote diff --git a/mercurial/bookmarks.py b/mercurial/bookmarks.py --- a/mercurial/bookmarks.py +++ b/mercurial/bookmarks.py @@ -579,10 +579,11 @@ def updatefromremote(ui, repo, remotemar if changed: tr = trfunc() + changes = [] for b, node, writer, msg in sorted(changed): - localmarks[b] = node + changes.append((b, node)) writer(msg) - localmarks.recordchange(tr) + localmarks.applychanges(repo, tr, changes) def incoming(ui, repo, other): '''Show bookmarks incoming from other to repo