275
275
BzrError.__init__(self, "Stores for branch %s are not listable" % br)
278
from bzrlib.weave import WeaveError, WeaveParentMismatch
278
class WeaveError(BzrNewError):
279
"""Error in processing weave: %(message)s"""
280
def __init__(self, message=None):
281
BzrNewError.__init__(self)
282
self.message = message
285
class WeaveRevisionAlreadyPresent(WeaveError):
286
"""Revision {%(revision_id)s} already present in %(weave)s"""
287
def __init__(self, revision_id, weave):
288
WeaveError.__init__(self)
289
self.revision_id = revision_id
293
class WeaveRevisionNotPresent(WeaveError):
294
"""Revision {%(revision_id)s} not present in %(weave)s"""
295
def __init__(self, revision_id, weave):
296
WeaveError.__init__(self)
297
self.revision_id = revision_id
301
class WeaveFormatError(WeaveError):
302
"""Weave invariant violated: %(what)s"""
303
def __init__(self, what):
304
WeaveError.__init__(self)
308
class WeaveParentMismatch(WeaveError):
309
"""Parents are mismatched between two revisions."""
280
312
class TransportError(BzrError):
281
313
"""All errors thrown by Transport implementations should derive