~jameinel/bzr/2.2.0b2-pack-collection

« back to all changes in this revision

Viewing changes to bzrlib/ui/text.py

  • Committer: John Arbash Meinel
  • Date: 2010-04-19 18:42:35 UTC
  • mfrom: (5074.3.91 +trunk)
  • Revision ID: john@arbash-meinel.com-20100419184235-ke8p0r0esktvx1b9
Bring in bzr.dev @ 5165

Show diffs side-by-side

added added

removed removed

Lines of Context:
253
253
    def _progress_all_finished(self):
254
254
        self._progress_view.clear()
255
255
 
 
256
    def show_user_warning(self, warning_id, **message_args):
 
257
        """Show a text message to the user.
 
258
 
 
259
        Explicitly not for warnings about bzr apis, deprecations or internals.
 
260
        """
 
261
        # eventually trace.warning should migrate here, to avoid logging and
 
262
        # be easier to test; that has a lot of test fallout so for now just
 
263
        # new code can call this
 
264
        if warning_id not in self.suppressed_warnings:
 
265
            self.stderr.write(self.format_user_warning(warning_id, message_args) +
 
266
                '\n')
 
267
 
256
268
 
257
269
class TextProgressView(object):
258
270
    """Display of progress bar and other information on a tty.