~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-06 11:58:19 UTC
  • mfrom: (1558.8.5 bzr.progress)
  • Revision ID: pqm@pqm.ubuntu.com-20060406115819-479ae52584747faa
Pass note up the stack instead of using bzrlib.ui_factory

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
48
47
 
49
48
 
50
49
def _supports_progress(f):
165
164
 
166
165
    def note(self, fmt_string, *args, **kwargs):
167
166
        """Record a note without disrupting the progress bar."""
168
 
        bzrlib.ui.ui_factory.clear_term()
 
167
        self.clear()
169
168
        self.to_messages_file.write(fmt_string % args)
170
169
        self.to_messages_file.write('\n')
171
170
 
434
433
    def clear(self):
435
434
        pass
436
435
 
 
436
    def note(*args, **kwargs):
 
437
        self.parent.note(*args, **kwargs)
 
438
 
437
439
 
438
440
def str_tdelta(delt):
439
441
    if delt is None: