hgext/evolve.py
changeset 443 3f8c11865ed2
parent 420 b6163a85ddac
child 444 aedb6b8ace86
--- 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