/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-04-08 04:34:03 UTC
  • mfrom: (5138 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5139.
  • Revision ID: robertc@robertcollins.net-20100408043403-56z0d07vdqrx7f3t
Update bugfix for 528114 to trunk.

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
1937
1926
 
1938
1927
 
1939
1928
class BzrMoveFailedError(BzrError):
2187
2176
 
2188
2177
    def __init__(self, repo):
2189
2178
        BzrError.__init__(self)
2190
 
        self.repo_path = repo.user_url
 
2179
        self.repo_path = repo.bzrdir.root_transport.base
2191
2180
 
2192
2181
 
2193
2182
class InconsistentDelta(BzrError):
2765
2754
 
2766
2755
    def __init__(self, bzrdir):
2767
2756
        import bzrlib.urlutils as urlutils
2768
 
        display_url = urlutils.unescape_for_display(bzrdir.user_url,
 
2757
        display_url = urlutils.unescape_for_display(bzrdir.root_transport.base,
2769
2758
                                                    'ascii')
2770
2759
        BzrError.__init__(self, bzrdir=bzrdir, display_url=display_url)
2771
2760
 
2846
2835
            more = ' ' + more
2847
2836
        import bzrlib.urlutils as urlutils
2848
2837
        display_url = urlutils.unescape_for_display(
2849
 
            tree.user_url, 'ascii')
 
2838
            tree.bzrdir.root_transport.base, 'ascii')
2850
2839
        BzrError.__init__(self, tree=tree, display_url=display_url, more=more)
2851
2840
 
2852
2841
 
3145
3134
    def __init__(self, bzrdir):
3146
3135
        self.bzrdir = bzrdir
3147
3136
 
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