Mercurial > hg
changeset 33481:67b5f81f17cf
bookmark: use 'applychanges' for bookmark deletion
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 10 Jul 2017 17:04:16 +0200 |
parents | ef54789a947d |
children | 916d4cde530e |
files | mercurial/bookmarks.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bookmarks.py Mon Jul 10 17:01:34 2017 +0200 +++ b/mercurial/bookmarks.py Mon Jul 10 17:04:16 2017 +0200 @@ -715,13 +715,14 @@ Raises an abort error if mark does not exist. """ marks = repo._bookmarks + changes = [] for mark in names: if mark not in marks: raise error.Abort(_("bookmark '%s' does not exist") % mark) if mark == repo._activebookmark: deactivate(repo) - del marks[mark] - marks.recordchange(tr) + changes.append((mark, None)) + marks.applychanges(repo, tr, changes) def rename(repo, tr, old, new, force=False, inactive=False): """rename a bookmark from old to new