~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/progress.py

  • Committer: Martin Pool
  • Date: 2009-06-23 07:36:29 UTC
  • mto: (4712.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4715.
  • Revision ID: mbp@sourcefrog.net-20090623073629-o829ewrajm8i1f1y
Comment on deprecating ProgressTask.clear

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
            self.ui_factory.note(fmt_string)
139
139
 
140
140
    def clear(self):
141
 
        # XXX: shouldn't be here; put it in mutter or the ui instead
 
141
        # TODO: deprecate this method; the model object shouldn't be concerned
 
142
        # with whether it's shown or not.  Most callers use this because they
 
143
        # want to write some different non-progress output to the screen, but
 
144
        # they should probably instead use a stream that's synchronized with
 
145
        # the progress output.  It may be there is a model-level use for
 
146
        # saying "this task's not active at the moment" but I don't see it. --
 
147
        # mbp 20090623
142
148
        self.ui_factory.clear_term()
143
149
 
144
150