Mercurial > hg-stable
changeset 33485:505021482541
bookmark: use 'applychanges' when updating a bookmark through pushkey
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 10 Jul 2017 17:24:28 +0200 |
parents | 2a8ce4e79a47 |
children | af402f11cb9d |
files | mercurial/bookmarks.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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: