27
27
class PatchFailed(Exception):
28
28
"""Failed applying patch!"""
31
class NoColor(Exception):
32
"""Color not available on this terminal."""
35
class NoBzrtoolsColor(Exception):
36
"""Bzrtools is required for color display"""
30
39
class NotCheckout(CommandError):
31
40
"""Specified path is not a checkout."""
41
def __init__(self, path):
42
CommandError.__init__(self, "%s is not a checkout" % path)
33
44
class UncommittedCheckout(CommandError):
34
45
"""This checkout contains uncommitted changes"""
47
CommandError.__init__(self, "This checkout has uncommitted changes")
49
class ParentMissingRevisions(CommandError):
50
"""The parent branch is missing revisions."""
51
def __init__(self, parent):
52
CommandError.__init__(self,
53
"The parent branch %s is missing revisions from this branch." %
57
class NoParent(CommandError):
59
CommandError.__init__(self, "There is no parent, so deleting the"
60
" branch could destroy data.")