368
368
self.format = format
371
372
class StrictCommitFailed(Exception):
372
373
"""Commit refused because there are unknowns in the tree."""
374
376
class NoSuchRevision(BzrError):
375
377
def __init__(self, branch, revision):
376
378
self.branch = branch
415
417
BzrError.__init__(self, msg)
418
421
class NotAncestor(BzrError):
419
422
def __init__(self, rev_id, not_ancestor_id):
420
423
msg = "Revision %s is not an ancestor of %s" % (not_ancestor_id,
450
453
BzrError.__init__(self, "Store %s is not listable" % store)
453
457
class UnlistableBranch(BzrError):
454
458
def __init__(self, br):
455
459
BzrError.__init__(self, "Stores for branch %s are not listable" % br)
462
class BoundBranchOutOfDate(BzrNewError):
463
"""Bound branch %(branch)s is out of date with master branch %(master)s."""
464
def __init__(self, branch, master):
465
BzrNewError.__init__(self)
470
class CommitToDoubleBoundBranch(BzrNewError):
471
"""Cannot commit to branch %(branch)s. It is bound to %(master)s, which is bound to %(remote)s."""
472
def __init__(self, branch, master, remote):
473
BzrNewError.__init__(self)
479
class OverwriteBoundBranch(BzrNewError):
480
"""Cannot pull --overwrite to a branch which is bound %(branch)s"""
481
def __init__(self, branch):
482
BzrNewError.__init__(self)
486
class BoundBranchConnectionFailure(BzrNewError):
487
"""Unable to connect to target of bound branch %(branch)s => %(target)s: %(error)s"""
488
def __init__(self, branch, target, error):
489
BzrNewError.__init__(self)
458
495
class WeaveError(BzrNewError):
459
496
"""Error in processing weave: %(message)s"""
460
497
def __init__(self, message=None):
618
655
self.text_revision = text_revision
619
656
self.file_id = file_id
621
659
class DuplicateKey(BzrNewError):
622
660
"""Key %(key)s is already present in map"""
624
663
class MalformedTransform(BzrNewError):
625
664
"""Tree transform is malformed %(conflicts)r"""
716
756
def __init__(self, repo):
717
757
BzrNewError.__init__(self)
718
758
self.repo_path = repo.bzrdir.root_transport.base
761
class UpgradeRequired(BzrNewError):
762
"""To use this feature you must upgrade your branch at %(path)s."""
764
def __init__(self, path):
765
BzrNewError.__init__(self)
769
class LocalRequiresBoundBranch(BzrNewError):
770
"""Cannot perform local-only commits on unbound branches."""