~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/progress.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-04-03 22:54:20 UTC
  • mfrom: (1558.8.4 bzr.progress)
  • Revision ID: pqm@pqm.ubuntu.com-20060403225420-b86ea31effcd8e72
Fixed pb.note interaction with nested progress bars

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
import bzrlib.errors as errors
46
46
from bzrlib.trace import mutter 
 
47
import bzrlib.ui
47
48
 
48
49
 
49
50
def _supports_progress(f):
164
165
 
165
166
    def note(self, fmt_string, *args, **kwargs):
166
167
        """Record a note without disrupting the progress bar."""
167
 
        self.clear()
 
168
        bzrlib.ui.ui_factory.clear_term()
168
169
        self.to_messages_file.write(fmt_string % args)
169
170
        self.to_messages_file.write('\n')
170
171