prune: use bookmarks.recordchange instead of bookmarks.write
authorLaurent Charignon <lcharignon@fb.com>
Thu, 10 Dec 2015 14:17:27 -0800
changeset 1555 0ff262537f98
parent 1554 59f5bb1f1877
child 1556 4f008b8acda7
prune: use bookmarks.recordchange instead of bookmarks.write Before this patch we were using the deprecated bookmarks.write instead of bookmarks.recordchange in prune
hgext/evolve.py
--- a/hgext/evolve.py	Fri Dec 11 10:49:29 2015 +0000
+++ b/hgext/evolve.py	Thu Dec 10 14:17:27 2015 -0800
@@ -2402,7 +2402,7 @@
                 if movebookmark:
                     bmdeactivate(repo)
                     repo._bookmarks[bookactive] = newnode.node()
-                    repo._bookmarks.write()
+                    repo._bookmarks.recordchange(tr)
                 commands.update(ui, repo, newnode.rev())
                 ui.status(_('working directory now at %s\n') % newnode)
                 if movebookmark: