Mercurial > hg
comparison hgext/histedit.py @ 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 | fad6852cf879 |
children | c26a76e1af36 |
comparison
equal
deleted
inserted
replaced
33485:505021482541 | 33486:af402f11cb9d |
---|---|
1546 return | 1546 return |
1547 oldbmarks = repo.nodebookmarks(oldtopmost) | 1547 oldbmarks = repo.nodebookmarks(oldtopmost) |
1548 if oldbmarks: | 1548 if oldbmarks: |
1549 with repo.lock(), repo.transaction('histedit') as tr: | 1549 with repo.lock(), repo.transaction('histedit') as tr: |
1550 marks = repo._bookmarks | 1550 marks = repo._bookmarks |
1551 changes = [] | |
1551 for name in oldbmarks: | 1552 for name in oldbmarks: |
1552 marks[name] = newtopmost | 1553 changes.append((name, newtopmost)) |
1553 marks.recordchange(tr) | 1554 marks.applychanges(repo, tr, changes) |
1554 | 1555 |
1555 def cleanupnode(ui, repo, nodes): | 1556 def cleanupnode(ui, repo, nodes): |
1556 """strip a group of nodes from the repository | 1557 """strip a group of nodes from the repository |
1557 | 1558 |
1558 The set of node to strip may contains unknown nodes.""" | 1559 The set of node to strip may contains unknown nodes.""" |