/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

Merge 2.0 into 2.1 resolving conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1075
1075
        self.target = target
1076
1076
 
1077
1077
 
 
1078
class LockCorrupt(LockError):
 
1079
 
 
1080
    _fmt = ("Lock is apparently held, but corrupted: %(corruption_info)s\n"
 
1081
            "Use 'bzr break-lock' to clear it")
 
1082
 
 
1083
    internal_error = False
 
1084
 
 
1085
    def __init__(self, corruption_info, file_data=None):
 
1086
        self.corruption_info = corruption_info
 
1087
        self.file_data = file_data
 
1088
 
 
1089
 
1078
1090
class LockNotHeld(LockError):
1079
1091
 
1080
1092
    _fmt = "Lock not held: %(lock)s"
1179
1191
 
1180
1192
class InvalidRevisionSpec(BzrError):
1181
1193
 
1182
 
    _fmt = ("Requested revision: '%(spec)s' does not exist in branch:"
 
1194
    _fmt = ("Requested revision: %(spec)r does not exist in branch:"
1183
1195
            " %(branch)s%(extra)s")
1184
1196
 
1185
1197
    def __init__(self, spec, branch, extra=None):
1297
1309
class BoundBranchOutOfDate(BzrError):
1298
1310
 
1299
1311
    _fmt = ("Bound branch %(branch)s is out of date with master branch"
1300
 
            " %(master)s.%(extra_help)s")
 
1312
            " %(master)s.")
1301
1313
 
1302
1314
    def __init__(self, branch, master):
1303
1315
        BzrError.__init__(self)
1304
1316
        self.branch = branch
1305
1317
        self.master = master
1306
 
        self.extra_help = ''
1307
1318
 
1308
1319
 
1309
1320
class CommitToDoubleBoundBranch(BzrError):
2176
2187
 
2177
2188
    def __init__(self, repo):
2178
2189
        BzrError.__init__(self)
2179
 
        self.repo_path = repo.user_url
 
2190
        self.repo_path = repo.bzrdir.root_transport.base
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.user_url,
 
2768
        display_url = urlutils.unescape_for_display(bzrdir.root_transport.base,
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.user_url, 'ascii')
 
2849
            tree.bzrdir.root_transport.base, 'ascii')
2839
2850
        BzrError.__init__(self, tree=tree, display_url=display_url, more=more)
2840
2851
 
2841
2852
 
3125
3136
 
3126
3137
    def __init__(self, path):
3127
3138
        self.path = path
3128
 
 
3129
 
 
3130
 
class NoColocatedBranchSupport(BzrError):
3131
 
 
3132
 
    _fmt = ("%(bzrdir)r does not support co-located branches.")
3133
 
 
3134
 
    def __init__(self, bzrdir):
3135
 
        self.bzrdir = bzrdir
3136