364
364
self.format = format
367
368
class StrictCommitFailed(Exception):
368
369
"""Commit refused because there are unknowns in the tree."""
370
372
class NoSuchRevision(BzrError):
371
373
def __init__(self, branch, revision):
372
374
self.branch = branch
411
413
BzrError.__init__(self, msg)
414
417
class NotAncestor(BzrError):
415
418
def __init__(self, rev_id, not_ancestor_id):
416
419
msg = "Revision %s is not an ancestor of %s" % (not_ancestor_id,
446
449
BzrError.__init__(self, "Store %s is not listable" % store)
449
453
class UnlistableBranch(BzrError):
450
454
def __init__(self, br):
451
455
BzrError.__init__(self, "Stores for branch %s are not listable" % br)
458
class BoundBranchOutOfDate(BzrNewError):
459
"""Bound branch %(branch)s is out of date with master branch %(master)s."""
460
def __init__(self, branch, master):
461
BzrNewError.__init__(self)
466
class CommitToDoubleBoundBranch(BzrNewError):
467
"""Cannot commit to branch %(branch)s. It is bound to %(master)s, which is bound to %(remote)s."""
468
def __init__(self, branch, master, remote):
469
BzrNewError.__init__(self)
475
class OverwriteBoundBranch(BzrNewError):
476
"""Cannot pull --overwrite to a branch which is bound %(branch)s"""
477
def __init__(self, branch):
478
BzrNewError.__init__(self)
482
class BoundBranchConnectionFailure(BzrNewError):
483
"""Unable to connect to target of bound branch %(branch)s => %(target)s: %(error)s"""
484
def __init__(self, branch, target, error):
485
BzrNewError.__init__(self)
454
491
class WeaveError(BzrNewError):
455
492
"""Error in processing weave: %(message)s"""
456
493
def __init__(self, message=None):
614
651
self.text_revision = text_revision
615
652
self.file_id = file_id
617
655
class DuplicateKey(BzrNewError):
618
656
"""Key %(key)s is already present in map"""
620
659
class MalformedTransform(BzrNewError):
621
660
"""Tree transform is malformed %(conflicts)r"""
712
752
def __init__(self, repo):
713
753
BzrNewError.__init__(self)
714
754
self.repo_path = repo.bzrdir.root_transport.base
757
class UpgradeRequired(BzrNewError):
758
"""To use this feature you must upgrade your branch at %(path)s."""
760
def __init__(self, path):
761
BzrNewError.__init__(self)
765
class LocalRequiresBoundBranch(BzrNewError):
766
"""Cannot perform local-only commits on unbound branches."""