/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-07-04 06:22:11 UTC
  • mto: This revision was merged to the branch mainline in revision 5332.
  • Revision ID: robertc@robertcollins.net-20100704062211-tk9hw6bnsn5x47fm
``bzrlib.lsprof.profile`` will no longer silently generate bad threaded
profiles when concurrent profile requests are made. Instead the profile
requests will be serialised. Reentrant requests will now deadlock.
(Robert Collins)

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"
2839
2848
        BzrError.__init__(self, tree=tree, display_url=display_url, more=more)
2840
2849
 
2841
2850
 
 
2851
class ShelvedChanges(UncommittedChanges):
 
2852
 
 
2853
    _fmt = ('Working tree "%(display_url)s" has shelved changes'
 
2854
            ' (See bzr shelve --list).%(more)s')
 
2855
 
 
2856
 
2842
2857
class MissingTemplateVariable(BzrError):
2843
2858
 
2844
2859
    _fmt = 'Variable {%(name)s} is not available.'
3134
3149
    def __init__(self, bzrdir):
3135
3150
        self.bzrdir = bzrdir
3136
3151
 
 
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