changeset 1129:da565c825429

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 16 Oct 2014 04:20:00 -0700
parents aabb145058d7
children be31c34bb341
files hgext/evolve.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: