contrib/synthrepo.py
changeset 38587 b62000a28812
parent 38584 c6398fc2fc9c
child 38588 1c93e0237a24
equal deleted inserted replaced
38586:79d7d715f3d0 38587:b62000a28812
   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(ui, {'git': True})
   199             diffopts = diffutil.diffallopts(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: