975
985
_fmt = "Commit refused because there are unknowns in the tree."
980
990
_fmt = "%(branch)s has no revision %(revision)s"
984
992
def __init__(self, branch, revision):
985
993
# 'branch' may sometimes be an internal object like a KnitRevisionStore
986
994
BzrError.__init__(self, branch=branch, revision=revision)
989
997
# zero_ninetyone: this exception is no longer raised and should be removed
992
1000
_fmt = ("Revision %(old_revision)s is not the left parent of"
993
1001
" %(new_revision)s, but branch %(branch_location)s expects this")
997
1003
def __init__(self, branch, old_revision, new_revision):
998
1004
BzrError.__init__(self, branch_location=branch.base,
999
1005
old_revision=old_revision,