comparison hgext/churn.py @ 8085:404a2c318e70

i18n: the message should not contain '\r' reported by bardy <bardiku@gmail.com>
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 20 Apr 2009 12:25:45 +0200
parents 3aaca5901ade
children 46293a0c7e9f
comparison
equal deleted inserted replaced
8084:5b3fee9c1f4d 8085:404a2c318e70
78 if opts.get('progress'): 78 if opts.get('progress'):
79 count += 1 79 count += 1
80 newpct = int(100.0 * count / max(len(repo), 1)) 80 newpct = int(100.0 * count / max(len(repo), 1))
81 if pct < newpct: 81 if pct < newpct:
82 pct = newpct 82 pct = newpct
83 ui.write(_("\rgenerating stats: %d%%") % pct) 83 ui.write("\r" + _("generating stats: %d%%") % pct)
84 sys.stdout.flush() 84 sys.stdout.flush()
85 85
86 if opts.get('progress'): 86 if opts.get('progress'):
87 ui.write("\r") 87 ui.write("\r")
88 sys.stdout.flush() 88 sys.stdout.flush()