/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: Martin
  • Date: 2010-05-16 15:18:43 UTC
  • mfrom: (5235 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5239.
  • Revision ID: gzlist@googlemail.com-20100516151843-lu53u7caehm3ie3i
Merge bzr.dev to resolve conflicts in NEWS and _chk_map_pyx

Show diffs side-by-side

added added

removed removed

Lines of Context:
1923
1923
class CantMoveRoot(BzrError):
1924
1924
 
1925
1925
    _fmt = "Moving the root directory is not supported at this time"
 
1926
    
 
1927
    
 
1928
class TransformRenameFailed(BzrError):
 
1929
 
 
1930
    _fmt = "Failed to rename %(from_path)s to %(to_path)s: %(why)s"
 
1931
    
 
1932
    def __init__(self, from_path, to_path, why, errno):
 
1933
        self.from_path = from_path
 
1934
        self.to_path = to_path
 
1935
        self.why = why
 
1936
        self.errno = errno
1926
1937
 
1927
1938
 
1928
1939
class BzrMoveFailedError(BzrError):
2176
2187
 
2177
2188
    def __init__(self, repo):
2178
2189
        BzrError.__init__(self)
2179
 
        self.repo_path = repo.bzrdir.root_transport.base
 
2190
        self.repo_path = repo.user_url
2180
2191
 
2181
2192
 
2182
2193
class InconsistentDelta(BzrError):
2754
2765
 
2755
2766
    def __init__(self, bzrdir):
2756
2767
        import bzrlib.urlutils as urlutils
2757
 
        display_url = urlutils.unescape_for_display(bzrdir.root_transport.base,
 
2768
        display_url = urlutils.unescape_for_display(bzrdir.user_url,
2758
2769
                                                    'ascii')
2759
2770
        BzrError.__init__(self, bzrdir=bzrdir, display_url=display_url)
2760
2771
 
2835
2846
            more = ' ' + more
2836
2847
        import bzrlib.urlutils as urlutils
2837
2848
        display_url = urlutils.unescape_for_display(
2838
 
            tree.bzrdir.root_transport.base, 'ascii')
 
2849
            tree.user_url, 'ascii')
2839
2850
        BzrError.__init__(self, tree=tree, display_url=display_url, more=more)
2840
2851
 
2841
2852
 
3134
3145
    def __init__(self, bzrdir):
3135
3146
        self.bzrdir = bzrdir
3136
3147
 
 
3148
class NoWhoami(BzrError):
 
3149
 
 
3150
    _fmt = ('Unable to determine your name.\n'
 
3151
        "Please, set your name with the 'whoami' command.\n"
 
3152
        'E.g. bzr whoami "Your Name <name@example.com>"')
 
3153
 
 
3154