304
304
(use bzr checkout if you wish to build a working tree): %(path)s"""
307
class AtomicFileAlreadyClosed(PathError):
308
"""'%(function)s' called on an AtomicFile after it was closed: %(path)s"""
310
def __init__(self, path, function):
311
PathError.__init__(self, path=path, extra=None)
312
self.function = function
315
class InaccessibleParent(PathError):
316
"""Parent not accessible given base %(base)s and relative path %(path)s"""
318
def __init__(self, path, base):
319
PathError.__init__(self, path)
307
323
class NoRepositoryPresent(BzrNewError):
308
324
"""No repository present: %(path)r"""
309
325
def __init__(self, bzrdir):
930
946
self.format = format
949
class BadConversionTarget(BzrNewError):
950
"""Cannot convert to format %(format)s. %(problem)s"""
952
def __init__(self, problem, format):
953
BzrNewError.__init__(self)
954
self.problem = problem
933
958
class NoDiff(BzrNewError):
934
959
"""Diff is not installed on this machine: %(msg)s"""
936
961
def __init__(self, msg):
937
super(NoDiff, self).__init__(msg=msg)
962
BzrNewError.__init__(self, msg=msg)
940
965
class NoDiff3(BzrNewError):
1045
1070
"""Not a bzr revision-bundle: %(text)r"""
1047
1072
def __init__(self, text):
1051
class BadBundle(Exception): pass
1054
class MalformedHeader(BadBundle): pass
1057
class MalformedPatches(BadBundle): pass
1060
class MalformedFooter(BadBundle): pass
1073
BzrNewError.__init__(self)
1077
class BadBundle(BzrNewError):
1078
"""Bad bzr revision-bundle: %(text)r"""
1080
def __init__(self, text):
1081
BzrNewError.__init__(self)
1085
class MalformedHeader(BadBundle):
1086
"""Malformed bzr revision-bundle header: %(text)r"""
1088
def __init__(self, text):
1089
BzrNewError.__init__(self)
1093
class MalformedPatches(BadBundle):
1094
"""Malformed patches in bzr revision-bundle: %(text)r"""
1096
def __init__(self, text):
1097
BzrNewError.__init__(self)
1101
class MalformedFooter(BadBundle):
1102
"""Malformed footer in bzr revision-bundle: %(text)r"""
1104
def __init__(self, text):
1105
BzrNewError.__init__(self)
1108
class UnsupportedEOLMarker(BadBundle):
1109
"""End of line marker was not \\n in bzr revision-bundle"""
1112
BzrNewError.__init__(self)