/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Marius Kruger
  • Date: 2010-07-10 21:28:56 UTC
  • mto: (5384.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5385.
  • Revision ID: marius.kruger@enerweb.co.za-20100710212856-uq4ji3go0u5se7hx
* Update documentation
* add NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1041
1041
class LockContention(LockError):
1042
1042
 
1043
1043
    _fmt = 'Could not acquire lock "%(lock)s": %(msg)s'
1044
 
    # TODO: show full url for lock, combining the transport and relative
1045
 
    # bits?
1046
1044
 
1047
1045
    internal_error = False
1048
1046
 
1925
1923
    _fmt = "Moving the root directory is not supported at this time"
1926
1924
 
1927
1925
 
 
1926
class TransformRenameFailed(BzrError):
 
1927
 
 
1928
    _fmt = "Failed to rename %(from_path)s to %(to_path)s: %(why)s"
 
1929
 
 
1930
    def __init__(self, from_path, to_path, why, errno):
 
1931
        self.from_path = from_path
 
1932
        self.to_path = to_path
 
1933
        self.why = why
 
1934
        self.errno = errno
 
1935
 
 
1936
 
1928
1937
class BzrMoveFailedError(BzrError):
1929
1938
 
1930
1939
    _fmt = "Could not move %(from_path)s%(operator)s %(to_path)s%(extra)s"
1975
1984
        "Use --keep to not delete them, or --force to delete them regardless.")
1976
1985
 
1977
1986
    def __init__(self, tree_delta):
 
1987
        symbol_versioning.warn(symbol_versioning.deprecated_in((2, 2, 0)) %
 
1988
            "BzrRemoveChangedFilesError", DeprecationWarning, stacklevel=2)
1978
1989
        BzrError.__init__(self)
1979
1990
        self.changes_as_text = tree_delta.get_changes_as_text()
1980
1991
        #self.paths_as_string = '\n'.join(changed_files)
2839
2850
        BzrError.__init__(self, tree=tree, display_url=display_url, more=more)
2840
2851
 
2841
2852
 
 
2853
class ShelvedChanges(UncommittedChanges):
 
2854
 
 
2855
    _fmt = ('Working tree "%(display_url)s" has shelved changes'
 
2856
            ' (See bzr shelve --list).%(more)s')
 
2857
 
 
2858
 
2842
2859
class MissingTemplateVariable(BzrError):
2843
2860
 
2844
2861
    _fmt = 'Variable {%(name)s} is not available.'
3134
3151
    def __init__(self, bzrdir):
3135
3152
        self.bzrdir = bzrdir
3136
3153
 
 
3154
class NoWhoami(BzrError):
 
3155
 
 
3156
    _fmt = ('Unable to determine your name.\n'
 
3157
        "Please, set your name with the 'whoami' command.\n"
 
3158
        'E.g. bzr whoami "Your Name <name@example.com>"')
 
3159
 
 
3160
class InvalidPattern(BzrError):
 
3161
 
 
3162
    _fmt = ('Invalid pattern(s) found. %(msg)s')
 
3163
 
 
3164
    def __init__(self, msg):
 
3165
        self.msg = msg
 
3166