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.
--- 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: