194 else: |
194 else: |
195 lastctx = repo[rev - 1] |
195 lastctx = repo[rev - 1] |
196 if lastctx.rev() != nullrev: |
196 if lastctx.rev() != nullrev: |
197 timedelta = ctx.date()[0] - lastctx.date()[0] |
197 timedelta = ctx.date()[0] - lastctx.date()[0] |
198 interarrival[roundto(timedelta, 300)] += 1 |
198 interarrival[roundto(timedelta, 300)] += 1 |
199 diffopts = diffutil.diffopts(ctx._repo.ui, {'git': True}) |
199 diffopts = diffutil.diffopts(ui, {'git': True}) |
200 diff = sum((d.splitlines() |
200 diff = sum((d.splitlines() |
201 for d in ctx.diff(pctx, opts=diffopts)), []) |
201 for d in ctx.diff(pctx, opts=diffopts)), []) |
202 fileadds, diradds, fileremoves, filechanges = 0, 0, 0, 0 |
202 fileadds, diradds, fileremoves, filechanges = 0, 0, 0, 0 |
203 for filename, mar, lineadd, lineremove, isbin in parsegitdiff(diff): |
203 for filename, mar, lineadd, lineremove, isbin in parsegitdiff(diff): |
204 if isbin: |
204 if isbin: |