# HG changeset patch # User Pierre-Yves David # Date 1413458400 25200 # Node ID da565c825429dab5f8f638f6a4c50bcebd4bed2c # Parent aabb145058d7f5d5428f8d9bb7dd70a652fee779 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. diff -r aabb145058d7 -r da565c825429 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: