equal
deleted
inserted
replaced
67 if opts.get('changesets'): |
67 if opts.get('changesets'): |
68 rate[key] = (rate.get(key, (0,))[0] + 1, 0) |
68 rate[key] = (rate.get(key, (0,))[0] + 1, 0) |
69 else: |
69 else: |
70 parents = ctx.parents() |
70 parents = ctx.parents() |
71 if len(parents) > 1: |
71 if len(parents) > 1: |
72 ui.note(_('Revision %d is a merge, ignoring...\n') % (rev,)) |
72 ui.note(_('revision %d is a merge, ignoring...\n') % (rev,)) |
73 return |
73 return |
74 |
74 |
75 ctx1 = parents[0] |
75 ctx1 = parents[0] |
76 lines = changedlines(ui, repo, ctx1, ctx, fns) |
76 lines = changedlines(ui, repo, ctx1, ctx, fns) |
77 rate[key] = [r + l for r, l in zip(rate.get(key, (0, 0)), lines)] |
77 rate[key] = [r + l for r, l in zip(rate.get(key, (0, 0)), lines)] |