compat: use old style method to update bookmark
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 25 Jul 2017 04:19:55 +0200
changeset 2794 5595fb96d922
parent 2793 fb317d218af0
child 2795 0dc119ed06b4
compat: use old style method to update bookmark The '_del' and '_set' method are new additions in 4.3 we should not use them in the compatibility layers.
hgext3rd/evolve/compat.py
--- a/hgext3rd/evolve/compat.py	Tue Jul 25 04:16:00 2017 +0200
+++ b/hgext3rd/evolve/compat.py	Tue Jul 25 04:19:55 2017 +0200
@@ -86,7 +86,7 @@
         return bookmarks.applychanges(repo, tr, changes)
     for name, node in changes:
         if node is None:
-            bookmarks._del(name)
+            del bookmarks[name]
         else:
-            bookmarks._set(name, node)
+            bookmarks[name] = node
     bookmarks.recordchange(tr)