/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: Robert Collins
  • Date: 2010-05-06 11:08:10 UTC
  • mto: This revision was merged to the branch mainline in revision 5223.
  • Revision ID: robertc@robertcollins.net-20100506110810-h3j07fh5gmw54s25
Cleaner matcher matching revised unlocking protocol.

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?
1044
1046
 
1045
1047
    internal_error = False
1046
1048
 
1923
1925
    _fmt = "Moving the root directory is not supported at this time"
1924
1926
 
1925
1927
 
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
 
 
1937
1928
class BzrMoveFailedError(BzrError):
1938
1929
 
1939
1930
    _fmt = "Could not move %(from_path)s%(operator)s %(to_path)s%(extra)s"
2848
2839
        BzrError.__init__(self, tree=tree, display_url=display_url, more=more)
2849
2840
 
2850
2841
 
2851
 
class ShelvedChanges(UncommittedChanges):
2852
 
 
2853
 
    _fmt = ('Working tree "%(display_url)s" has shelved changes'
2854
 
            ' (See bzr shelve --list).%(more)s')
2855
 
 
2856
 
 
2857
2842
class MissingTemplateVariable(BzrError):
2858
2843
 
2859
2844
    _fmt = 'Variable {%(name)s} is not available.'
3149
3134
    def __init__(self, bzrdir):
3150
3135
        self.bzrdir = bzrdir
3151
3136
 
3152
 
class NoWhoami(BzrError):
3153
 
 
3154
 
    _fmt = ('Unable to determine your name.\n'
3155
 
        "Please, set your name with the 'whoami' command.\n"
3156
 
        'E.g. bzr whoami "Your Name <name@example.com>"')
3157
 
 
3158