ui: display progress with decimal notation stable
authorPatrick Mezard <pmezard@gmail.com>
Fri, 08 Jan 2010 23:15:24 +0100
branchstable
changeset 10220 500d09be7ace
parent 10219 3b94120864fc
child 10221 489b0caf21ed
child 10224 712dc3b6db68
child 10228 056c366fea8c
ui: display progress with decimal notation
mercurial/ui.py
tests/test-relink.out
--- 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