Mercurial > hg-stable
changeset 22473:ca85306b3eb2
contrib/synthrepo: pass options to ctx.diff as kwargs, not a dict
author | Mike Edgar <adgar@google.com> |
---|---|
date | Fri, 12 Sep 2014 21:38:52 -0400 |
parents | 2e2577b0ccbe |
children | 9da0ef363861 |
files | contrib/synthrepo.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/synthrepo.py Fri Sep 12 17:43:37 2014 -0400 +++ b/contrib/synthrepo.py Fri Sep 12 21:38:52 2014 -0400 @@ -151,8 +151,7 @@ lastctx = repo[rev - 1] if lastctx.rev() != nullrev: interarrival[roundto(ctx.date()[0] - lastctx.date()[0], 300)] += 1 - diff = sum((d.splitlines() - for d in ctx.diff(pctx, opts={'git': True})), []) + diff = sum((d.splitlines() for d in ctx.diff(pctx, git=True)), []) fileadds, diradds, fileremoves, filechanges = 0, 0, 0, 0 for filename, mar, lineadd, lineremove, binary in parsegitdiff(diff): if binary: