95
96
class DivergedBranches(BzrError):
96
97
def __init__(self, branch1, branch2):
98
BzrError.__init__(self, "These branches have diverged.")
97
99
self.branch1 = branch1
98
100
self.branch2 = branch2
99
BzrError.__init__(self, "These branches have diverged.")
101
102
class UnrelatedBranches(BzrCommandError):
102
103
def __init__(self):
108
109
class NotAncestor(BzrError):
109
110
def __init__(self, rev_id, not_ancestor_id):
111
self.not_ancestor_id = not_ancestor_id
112
msg = "Revision %s is not an ancestor of %s" % (not_ancestor_id,
114
BzrError.__init__(self, msg)
117
class NotAncestor(BzrError):
118
def __init__(self, rev_id, not_ancestor_id):
120
self.not_ancestor_id = not_ancestor_id
121
msg = "Revision %s is not an ancestor of %s" % (not_ancestor_id,
123
BzrError.__init__(self, msg)
126
class NotAncestor(BzrError):
127
def __init__(self, rev_id, not_ancestor_id):
129
self.not_ancestor_id = not_ancestor_id
130
msg = "Revision %s is not an ancestor of %s" % (not_ancestor_id,
132
BzrError.__init__(self, msg)
111
msg = "Revision %s is not an ancestor of %s" % (not_ancestor_id,
113
BzrError.__init__(self, msg)
115
self.not_ancestor_id = not_ancestor_id
135
118
class InstallFailed(BzrError):
136
119
def __init__(self, revisions):
120
msg = "Could not install revisions:\n%s" % " ,".join(revisions)
121
BzrError.__init__(self, msg)
137
122
self.revisions = revisions
138
msg = "Could not install revisions:\n%s" % " ,".join(revisions)
139
BzrError.__init__(self, msg)
142
125
class AmbiguousBase(BzrError):