contrib/synthrepo: pass options to ctx.diff as kwargs, not a dict
authorMike Edgar <adgar@google.com>
Fri, 12 Sep 2014 21:38:52 -0400
changeset 22473 ca85306b3eb2
parent 22472 2e2577b0ccbe
child 22474 9da0ef363861
contrib/synthrepo: pass options to ctx.diff as kwargs, not a dict
contrib/synthrepo.py
--- 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: