~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/text.py

  • Committer: Martin Pool
  • Date: 2009-09-23 06:29:46 UTC
  • mto: This revision was merged to the branch mainline in revision 4745.
  • Revision ID: mbp@sourcefrog.net-20090923062946-084iws6sphrck1gm
Add show_warning and show_message tests and implementations

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
        self.clear_term()
178
178
        self.stderr.write("bzr: error: %s\n" % msg)
179
179
 
 
180
    def show_message(self, msg):
 
181
        self.note(msg)
 
182
 
 
183
    def show_warning(self, msg):
 
184
        self.clear_term()
 
185
        self.stderr.write("bzr: warning: %s\n" % msg)
 
186
 
180
187
    def _progress_updated(self, task):
181
188
        """A task has been updated and wants to be displayed.
182
189
        """