Mercurial > evolve
diff hgext/evolve.py @ 1061:f3867e60d072 stable
compat: always call metadata as a keyword argument
Those function are gaining more arguments. using keyword argument keep use safe
in all version.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 15 Aug 2014 17:42:19 -0700 |
parents | cfe1b9d3e5d9 |
children | 742c1ce79a96 |
line wrap: on
line diff
--- a/hgext/evolve.py Fri Aug 15 16:54:32 2014 -0700 +++ b/hgext/evolve.py Fri Aug 15 17:42:19 2014 -0700 @@ -1019,7 +1019,7 @@ for i, p in enumerate(ctx.parents(), 1): meta['p%i' % i] = p.hex() before = len(store._all) - store.create(tr, mark[0], mark[1], mark[2], meta) + store.create(tr, mark[0], mark[1], mark[2], metadata=meta) if len(store._all) - before: ui.write('created new markers for %i\n' % rev) ui.progress(pgop, idx, total=pgtotal)