~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-02-10 18:29:50 UTC
  • mfrom: (4988.9.3 warn-experimental-formats)
  • Revision ID: pqm@pqm.ubuntu.com-20100210182950-7fdfub9g9a2lplf3
(Jelmer) Warn about fetching into experimental formats.

Show diffs side-by-side

added added

removed removed

Lines of Context:
295
295
            "same format for better performance.\n" %
296
296
            (from_format, to_format))
297
297
 
 
298
    def warn_experimental_format_fetch(self, inter):
 
299
        """Warn about fetching into experimental repository formats."""
 
300
        if inter.target._format.experimental:
 
301
            trace.warning("Fetching into experimental format %s.\n"
 
302
                "This format may be unreliable or change in the future "
 
303
                "without an upgrade path.\n" % (inter.target._format,))
 
304
 
 
305
 
298
306
 
299
307
class SilentUIFactory(UIFactory):
300
308
    """A UI Factory which never prints anything.