~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/__init__.py

  • Committer: Martin Pool
  • Date: 2007-03-22 07:04:04 UTC
  • mto: (2323.5.2 0.15)
  • mto: This revision was merged to the branch mainline in revision 2390.
  • Revision ID: mbp@sourcefrog.net-20070322070404-zzhbluric9k4wox1
Move responsibility for suggesting upgrades to ui object

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
from bzrlib import (
38
38
    progress,
 
39
    trace,
39
40
    )
40
41
""")
41
42
 
97
98
        """
98
99
        raise NotImplementedError(self.get_boolean)
99
100
 
100
 
 
 
101
    def recommend_upgrade(self,
 
102
        current_format_name,
 
103
        basedir):
 
104
        trace.warning("%s is deprecated "
 
105
            "and a better format is available.\n"
 
106
            "It is recommended that you upgrade by "
 
107
            "running the command\n"
 
108
            "  bzr upgrade %s",
 
109
            current_format_name,
 
110
            basedir)
 
111
            
101
112
class CLIUIFactory(UIFactory):
102
113
    """Common behaviour for command line UI factories."""
103
114