evolve: adapt to the new metadata storage
authorPierre-Yves David <pierre-yves.david@fb.com>
Thu, 16 Oct 2014 04:20:00 -0700
changeset 1129 da565c825429
parent 1128 aabb145058d7
child 1130 be31c34bb341
evolve: adapt to the new metadata storage Metadata are not stored as a "list" of (key, value) tuple instead of a binary blob. This adapt to ef880e28e56a in Mercurial.
hgext/evolve.py
--- a/hgext/evolve.py	Thu Oct 16 11:54:44 2014 -0700
+++ b/hgext/evolve.py	Thu Oct 16 04:20:00 2014 -0700
@@ -993,10 +993,11 @@
             known += 1
         nbsucs = len(mark[1])
         sucscount[min(nbsucs, 3)] += 1
-        meta = obsolete.decodemeta(mark[3])
-        for key in meta:
+        meta = mark[3]
+        for key, value in meta:
             metakeys.setdefault(key, 0)
             metakeys[key] += 1
+        meta = dict(meta)
         parents = [meta.get('p1'), meta.get('p2')]
         parents = [node.bin(p) for p in parents if p is not None]
         if parents: