/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: Canonical.com Patch Queue Manager
  • Date: 2009-02-18 21:23:24 UTC
  • mfrom: (4017.1.1 pb_tick)
  • Revision ID: pqm@pqm.ubuntu.com-20090218212324-tz3ups4h8vg3j12t
(jam) Fix the new progress code to handle pb.tick() properly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
 
108
108
    def _overall_completion_fraction(self, child_fraction=0.0):
109
109
        """Return fractional completion of this task and its parents
110
 
        
 
110
 
111
111
        Returns None if no completion can be computed."""
112
 
        if self.total_cnt:
 
112
        if self.current_cnt is not None and self.total_cnt:
113
113
            own_fraction = (float(self.current_cnt) + child_fraction) / self.total_cnt
114
114
        else:
115
115
            own_fraction = None