/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/ui/text.py

  • Committer: John Arbash Meinel
  • Date: 2009-10-15 20:04:37 UTC
  • mfrom: (4748 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4752.
  • Revision ID: john@arbash-meinel.com-20091015200437-4wweb0t6uzspvv84
Bring in bzr.dev 4748, resolve conflict, update NEWS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
                 stdout=None,
50
50
                 stderr=None):
51
51
        """Create a TextUIFactory.
52
 
 
53
 
        :param bar_type: The type of progress bar to create.  Deprecated
54
 
            and ignored; a TextProgressView is always used.
55
52
        """
56
53
        super(TextUIFactory, self).__init__()
57
54
        # TODO: there's no good reason not to pass all three streams, maybe we
176
173
        self._progress_view.show_transport_activity(transport,
177
174
            direction, byte_count)
178
175
 
 
176
    def show_error(self, msg):
 
177
        self.clear_term()
 
178
        self.stderr.write("bzr: error: %s\n" % msg)
 
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
 
179
187
    def _progress_updated(self, task):
180
188
        """A task has been updated and wants to be displayed.
181
189
        """