~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/progress.py

  • Committer: Martin Pool
  • Date: 2005-06-11 01:33:22 UTC
  • Revision ID: mbp@sourcefrog.net-20050611013322-f12014bf65accd0c
- don't show progress bar unless completion is known

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
                # number of markers highlighted in bar
182
182
                markers = int(round(float(cols) * current_cnt / total_cnt))
183
183
                bar_str = '[' + ('=' * markers).ljust(cols) + '] '
184
 
            else:
 
184
            elif False:
185
185
                # don't know total, so can't show completion.
186
186
                # so just show an expanded spinning thingy
187
187
                m = self.spin_pos % cols
188
188
                ms = (' ' * m + '*').ljust(cols)
189
189
                
190
190
                bar_str = '[' + ms + '] '
 
191
            else:
 
192
                bar_str = ''
191
193
        else:
192
194
            bar_str = ''
193
195