312
312
(use bzr checkout if you wish to build a working tree): %(path)s"""
315
class AtomicFileAlreadyClosed(PathError):
316
"""'%(function)s' called on an AtomicFile after it was closed: %(path)s"""
318
def __init__(self, path, function):
319
PathError.__init__(self, path=path, extra=None)
320
self.function = function
323
class InaccessibleParent(PathError):
324
"""Parent not accessible given base %(base)s and relative path %(path)s"""
326
def __init__(self, path, base):
327
PathError.__init__(self, path)
315
331
class NoRepositoryPresent(BzrNewError):
316
332
"""No repository present: %(path)r"""
317
333
def __init__(self, bzrdir):
1053
1069
"""Not a bzr revision-bundle: %(text)r"""
1055
1071
def __init__(self, text):
1059
class BadBundle(Exception): pass
1062
class MalformedHeader(BadBundle): pass
1065
class MalformedPatches(BadBundle): pass
1068
class MalformedFooter(BadBundle): pass
1072
BzrNewError.__init__(self)
1076
class BadBundle(BzrNewError):
1077
"""Bad bzr revision-bundle: %(text)r"""
1079
def __init__(self, text):
1080
BzrNewError.__init__(self)
1084
class MalformedHeader(BadBundle):
1085
"""Malformed bzr revision-bundle header: %(text)r"""
1087
def __init__(self, text):
1088
BzrNewError.__init__(self)
1092
class MalformedPatches(BadBundle):
1093
"""Malformed patches in bzr revision-bundle: %(text)r"""
1095
def __init__(self, text):
1096
BzrNewError.__init__(self)
1100
class MalformedFooter(BadBundle):
1101
"""Malformed footer in bzr revision-bundle: %(text)r"""
1103
def __init__(self, text):
1104
BzrNewError.__init__(self)
1107
class UnsupportedEOLMarker(BadBundle):
1108
"""End of line marker was not \\n in bzr revision-bundle"""
1111
BzrNewError.__init__(self)