changeset 10220:500d09be7ace stable

ui: display progress with decimal notation
author Patrick Mezard <pmezard@gmail.com>
date Fri, 08 Jan 2010 23:15:24 +0100
parents 3b94120864fc
children 489b0caf21ed 712dc3b6db68 056c366fea8c
files mercurial/ui.py tests/test-relink.out
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/ui.py	Fri Jan 08 23:15:22 2010 +0100
+++ b/mercurial/ui.py	Fri Jan 08 23:15:24 2010 +0100
@@ -380,7 +380,7 @@
 
         if total:
             pct = 100.0 * pos / total
-            self.debug('%s:%s %s/%s%s (%4.2g%%)\n'
+            self.debug('%s:%s %s/%s%s (%4.2f%%)\n'
                      % (topic, item, pos, total, unit, pct))
         else:
             self.debug('%s:%s %s%s\n' % (topic, item, pos, unit))
--- a/tests/test-relink.out	Fri Jan 08 23:15:22 2010 +0100
+++ b/tests/test-relink.out	Fri Jan 08 23:15:24 2010 +0100
@@ -17,7 +17,7 @@
 not linkable: 00manifest.i
 not linkable: data/b.i
 pruned down to 2 probably relinkable files
-relink: data/a.i 1/2  files (  50%)
+relink: data/a.i 1/2  files (50.00%)
 not linkable: data/dummy.i
 relinked 1 files (136 bytes reclaimed)
 % check hardlinks