diff hgext/evolve.py @ 443:3f8c11865ed2

obsolete: remove usage of addcollapsedobsolete
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Tue, 07 Aug 2012 18:05:41 +0200
parents b6163a85ddac
children aedb6b8ace86
line wrap: on
line diff
--- a/hgext/evolve.py	Tue Aug 07 18:17:13 2012 +0200
+++ b/hgext/evolve.py	Tue Aug 07 18:05:41 2012 +0200
@@ -118,8 +118,10 @@
         if created:
             updatebookmarks(newid)
             # add evolution metadata
-            collapsed = set([u.node() for u in updates] + [old.node()])
-            repo.addcollapsedobsolete(collapsed, new.node())
+            markers = [(u, (new,)) for u in updates]
+            markers.append((old, (new,)))
+            obsolete = extensions.find('obsolete')
+            obsolete.createmarkers(repo, markers)
         else:
             # newid is an existing revision. It could make sense to
             # replace revisions with existing ones but probably not by