/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: Robert Collins
  • Date: 2007-10-29 04:05:13 UTC
  • mto: (2592.6.12 repository)
  • mto: This revision was merged to the branch mainline in revision 2949.
  • Revision ID: robertc@robertcollins.net-20071029040513-b1f6b3xkhslgkt2s
* A progress bar has been added for knitpack -> knitpack fetching.
  (Robert Collins, #157789)

Show diffs side-by-side

added added

removed removed

Lines of Context:
461
461
 
462
462
    def update(self, msg, current_cnt=None, total_cnt=None):
463
463
        self.current = current_cnt
464
 
        self.total = total_cnt
 
464
        if total_cnt is not None:
 
465
            self.total = total_cnt
465
466
        self.message = msg
466
467
        self.child_fraction = 0
467
468
        self.tick()
548
549
            self.cur_phase = 0
549
550
        else:
550
551
            self.cur_phase += 1
551
 
        assert self.cur_phase < self.total 
 
552
        assert self.cur_phase < self.total
552
553
        self.pb.update(self.message, self.cur_phase, self.total)
553
554
 
554
555