447
447
self.weave_b = weave_b
450
class VersionedFileError(BzrNewError):
451
"""Versioned file error."""
454
class RevisionNotPresent(VersionedFileError):
455
"""Revision {%(revision_id)s} not present in %(file_id)s."""
457
def __init__(self, revision_id, file_id):
458
VersionedFileError.__init__(self)
459
self.revision_id = revision_id
460
self.file_id = file_id
463
class RevisionAlreadyPresent(VersionedFileError):
464
"""Revision {%(revision_id)s} already present in %(file_id)s."""
466
def __init__(self, revision_id, file_id):
467
VersionedFileError.__init__(self)
468
self.revision_id = revision_id
469
self.file_id = file_id
472
class KnitError(BzrNewError):
476
class KnitHeaderError(KnitError):
477
"""Knit header error: %(badline)r unexpected"""
479
def __init__(self, badline):
480
KnitError.__init__(self)
481
self.badline = badline
484
class KnitCorrupt(KnitError):
485
"""Knit %(filename)s corrupt: %(how)s"""
487
def __init__(self, filename, how):
488
KnitError.__init__(self)
489
self.filename = filename
450
493
class NoSuchExportFormat(BzrNewError):
451
494
"""Export format %(format)r not supported"""
452
495
def __init__(self, format):