Mercurial > hg
comparison hgext/churn.py @ 6955:a9411e29773f
i18n: mark strings for translation in churn extension
author | Martin Geisler <mg@daimi.au.dk> |
---|---|
date | Sun, 31 Aug 2008 16:12:02 +0200 |
parents | b114a8c7998f |
children | 5f201f711932 |
comparison
equal
deleted
inserted
replaced
6954:f7d545a866e8 | 6955:a9411e29773f |
---|---|
56 lines += 1 | 56 lines += 1 |
57 | 57 |
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: |
72 ui.write("\r") | 72 ui.write("\r") |
73 sys.stdout.flush() | 73 sys.stdout.flush() |