# HG changeset patch # User Pierre-Yves David # Date 1430761622 25200 # Node ID d6a74094719785f10f9975d83316d5872b2c21c7 # Parent f032d93506d8359427277fc462b0e4818cdf7dd2 evolve: update cmddebugrecordpruneparents to the new markers creation API The parents information are now first class citizen. (caught by laurent using pylint) diff -r f032d93506d8 -r d6a740947197 hgext/evolve.py --- a/hgext/evolve.py Mon May 04 10:46:06 2015 -0700 +++ b/hgext/evolve.py Mon May 04 10:47:02 2015 -0700 @@ -981,11 +981,10 @@ rev = nm.get(mark[0]) if rev is not None: ctx = unfi[rev] - meta = obsolete.decodemeta(mark[3]) - for i, p in enumerate(ctx.parents(), 1): - meta['p%i' % i] = p.hex() + parents = tuple(p.node() for p in ctx.parents()) before = len(store._all) - store.create(tr, mark[0], mark[1], mark[2], metadata=meta) + store.create(tr, mark[0], mark[1], mark[2], marks[3], + parents=parents) if len(store._all) - before: ui.write('created new markers for %i\n' % rev) ui.progress(pgop, idx, total=pgtotal)