~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: 2007-03-21 04:49:05 UTC
  • mfrom: (2367.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070321044905-ded01a80ab49bdd9
Update NEWS to match bzr 0.15.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007 Canonical Ltd
 
1
# Copyright (C) 2005, 2006 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
36
36
 
37
37
from bzrlib import (
38
38
    progress,
39
 
    trace,
40
39
    )
41
40
""")
42
41
 
98
97
        """
99
98
        raise NotImplementedError(self.get_boolean)
100
99
 
101
 
    def recommend_upgrade(self,
102
 
        current_format_name,
103
 
        basedir):
104
 
        # this should perhaps be in the TextUIFactory and the default can do
105
 
        # nothing
106
 
        trace.warning("%s is deprecated "
107
 
            "and a better format is available.\n"
108
 
            "It is recommended that you upgrade by "
109
 
            "running the command\n"
110
 
            "  bzr upgrade %s",
111
 
            current_format_name,
112
 
            basedir)
113
100
 
114
 
            
115
101
class CLIUIFactory(UIFactory):
116
102
    """Common behaviour for command line UI factories."""
117
103
 
176
162
    def clear_term(self):
177
163
        pass
178
164
 
179
 
    def recommend_upgrade(self, *args):
180
 
        pass
181
 
 
182
165
 
183
166
def clear_decorator(func, *args, **kwargs):
184
167
    """Decorator that clears the term"""