[Pkg-bazaar-commits] ./bzr/unstable r669: - don't show progress bar unless completion is known

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:20:39 UTC 2009


------------------------------------------------------------
revno: 669
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Sat 2005-06-11 11:33:22 +1000
message:
  - don't show progress bar unless completion is known
modified:
  bzrlib/progress.py
-------------- next part --------------
=== modified file 'bzrlib/progress.py'
--- a/bzrlib/progress.py	2005-06-10 09:42:14 +0000
+++ b/bzrlib/progress.py	2005-06-11 01:33:22 +0000
@@ -181,13 +181,15 @@
                 # number of markers highlighted in bar
                 markers = int(round(float(cols) * current_cnt / total_cnt))
                 bar_str = '[' + ('=' * markers).ljust(cols) + '] '
-            else:
+            elif False:
                 # don't know total, so can't show completion.
                 # so just show an expanded spinning thingy
                 m = self.spin_pos % cols
                 ms = (' ' * m + '*').ljust(cols)
                 
                 bar_str = '[' + ms + '] '
+            else:
+                bar_str = ''
         else:
             bar_str = ''
 



More information about the Pkg-bazaar-commits mailing list