/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/progress.py

  • Committer: Martin Pool
  • Date: 2006-05-12 06:59:47 UTC
  • mfrom: (1706 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1707.
  • Revision ID: mbp@sourcefrog.net-20060512065947-60e259ffea0bf4fb
[merge] bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
        self.last_update = now
286
286
        return False
287
287
        
288
 
 
289
288
    def tick(self):
290
289
        self.update(self.last_msg, self.last_cnt, self.last_total, 
291
290
                    self.child_fraction)
303
302
            self.last_msg = ''
304
303
        self.tick()
305
304
 
306
 
 
307
305
    def update(self, msg, current_cnt=None, total_cnt=None, 
308
306
               child_fraction=0):
309
307
        """Update and redraw progress bar."""
 
308
        if msg is None:
 
309
            msg = self.last_msg
 
310
 
 
311
        if total_cnt is None:
 
312
            total_cnt = self.last_total
310
313
 
311
314
        if current_cnt < 0:
312
315
            current_cnt = 0