~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/progress.py

  • Committer: Robert Collins
  • Date: 2006-03-12 17:09:11 UTC
  • mto: (1615.1.2 bzr.mbp.integration)
  • mto: This revision was merged to the branch mainline in revision 1616.
  • Revision ID: robertc@robertcollins.net-20060312170911-306a47e0478ec183
Subclass SequenceMatcher to get a slightly faster (in our case) find_longest_match routine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
419
419
        else:
420
420
            count = self.current+self.child_fraction
421
421
            if count > self.total:
422
 
                mutter('clamping count of %d to %d' % (count, self.total))
 
422
                if __debug__:
 
423
                    mutter('clamping count of %d to %d' % (count, self.total))
423
424
                count = self.total
424
425
        self.parent.child_update(self.message, count, self.total)
425
426