32
class InvalidRevisionNumber(BzrError):
33
def __init__(self, revno):
37
return 'invalid revision number: %r' % self.args[0]
40
class InvalidRevisionId(BzrError):
32
44
class BzrCommandError(BzrError):
33
45
# Error from malformed user command
71
83
class PointlessCommit(Exception):
72
84
"""Commit failed because nothing was changed."""
87
class NoSuchRevision(BzrError):
88
def __init__(self, branch, revision):
90
self.revision = revision
91
msg = "Branch %s has no revision %s" % (branch, revision)
92
BzrError.__init__(self, msg)
95
class UnrelatedBranches(BzrCommandError):
97
msg = "Branches have no common ancestor, and no base revision"\
99
BzrCommandError.__init__(self, msg)
102
class InstallFailed(BzrError):
103
def __init__(self, revisions):
104
self.revisions = revisions
105
msg = "Could not install revisions:\n%s" % " ,".join(revisions)
106
BzrError.__init__(self, msg)
109
class AmbiguousBase(BzrError):
110
def __init__(self, bases):
111
msg = "The correct base is unclear, becase %s are all equally close" %\
113
BzrError.__init__(self, msg)