changeset 33485 | 505021482541 |
parent 33484 | 2a8ce4e79a47 |
child 33491 | 1adcb594eb6b |
--- 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: