Show More
@@ -58,14 +58,14 b' def countrevs(ui, repo, amap, revs, prog' | |||||
58 | user = util.email(ctx2.user()) |
|
58 | user = util.email(ctx2.user()) | |
59 | user = amap.get(user, user) # remap |
|
59 | user = amap.get(user, user) # remap | |
60 | stats[user] = stats.get(user, 0) + lines |
|
60 | stats[user] = stats.get(user, 0) + lines | |
61 | ui.debug("rev %d: %d lines by %s\n" % (rev, lines, user)) |
|
61 | ui.debug(_("rev %d: %d lines by %s\n") % (rev, lines, user)) | |
62 |
|
62 | |||
63 | if progress: |
|
63 | if progress: | |
64 | count += 1 |
|
64 | count += 1 | |
65 | newpct = int(100.0 * count / max(len(revs), 1)) |
|
65 | newpct = int(100.0 * count / max(len(revs), 1)) | |
66 | if pct < newpct: |
|
66 | if pct < newpct: | |
67 | pct = newpct |
|
67 | pct = newpct | |
68 | ui.write("\rGenerating stats: %d%%" % pct) |
|
68 | ui.write(_("\rGenerating stats: %d%%") % pct) | |
69 | sys.stdout.flush() |
|
69 | sys.stdout.flush() | |
70 |
|
70 | |||
71 | if progress: |
|
71 | if progress: |
General Comments 0
You need to be logged in to leave comments.
Login now