Mercurial > hg-stable
changeset 33486:af402f11cb9d
bookmark: use 'applychanges' when updating bookmark in histedit
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 10 Jul 2017 17:28:53 +0200 |
parents | 505021482541 |
children | a050d37c2c70 |
files | hgext/histedit.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/histedit.py Mon Jul 10 17:24:28 2017 +0200 +++ b/hgext/histedit.py Mon Jul 10 17:28:53 2017 +0200 @@ -1548,9 +1548,10 @@ if oldbmarks: with repo.lock(), repo.transaction('histedit') as tr: marks = repo._bookmarks + changes = [] for name in oldbmarks: - marks[name] = newtopmost - marks.recordchange(tr) + changes.append((name, newtopmost)) + marks.applychanges(repo, tr, changes) def cleanupnode(ui, repo, nodes): """strip a group of nodes from the repository