author | Boris Feld <boris.feld@octobus.net> |
Mon, 10 Jul 2017 17:24:28 +0200 | |
changeset 33485 | 505021482541 |
parent 33484 | 2a8ce4e79a47 |
child 33486 | af402f11cb9d |
--- a/mercurial/bookmarks.py Mon Jul 10 17:22:17 2017 +0200 +++ b/mercurial/bookmarks.py Mon Jul 10 17:24:28 2017 +0200 @@ -402,12 +402,12 @@ if existing != old and existing != new: return False if new == '': - del marks[key] + changes = [(key, None)] else: if new not in repo: return False - marks[key] = repo[new].node() - marks.recordchange(tr) + changes = [(key, repo[new].node())] + marks.applychanges(repo, tr, changes) tr.close() return True finally: