~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/__init__.py

Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2010 Canonical Ltd
 
1
# Copyright (C) 2005-2011 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
42
42
"""
43
43
 
44
44
 
45
 
import os
46
 
import sys
47
45
import warnings
48
46
 
49
47
from bzrlib.lazy_import import lazy_import
50
48
lazy_import(globals(), """
51
 
import getpass
52
 
 
53
49
from bzrlib import (
54
 
    errors,
55
50
    osutils,
56
51
    progress,
57
52
    trace,
58
53
    )
59
54
""")
60
 
from bzrlib.symbol_versioning import (
61
 
    deprecated_function,
62
 
    deprecated_in,
63
 
    deprecated_method,
64
 
    )
65
55
 
66
56
 
67
57
_valid_boolean_strings = dict(yes=True, no=False,
155
145
            "This may take some time. Upgrade the repositories to the "
156
146
            "same format for better performance."
157
147
            ),
 
148
        deprecated_command=(
 
149
            "The command 'bzr %(deprecated_name)s' "
 
150
            "has been deprecated in bzr %(deprecated_in_version)s. "
 
151
            "Please use 'bzr %(recommended_name)s' instead."),
158
152
        recommend_upgrade=("%(current_format_name)s is deprecated "
159
153
            "and a better format is available.\n"
160
154
            "It is recommended that you upgrade by "