166
173
graph = self.source.repository.get_graph()
167
174
# This just handles simple cases, but that's good enough for tests
169
177
if stop_revision is None:
170
178
stop_revision = self.source.last_revision()
174
180
if their_history[:min(len(my_history), len(their_history))] != my_history:
175
181
raise errors.DivergedBranches(self.target, self.source)
176
182
todo = their_history[len(my_history):]