202
202
self.graph = self.branch.repository.get_graph(other_repo)
203
203
revision_a = self.branch.last_revision()
204
204
self.scan_graph(revision_a, revision_b)
206
207
self.n_revnos = branch.get_revision_id_to_revno_map()
207
208
self.distances = node_distances(self.descendants, self.ancestors,
209
210
if other_branch is not None:
210
211
self.base = select_farthest(self.distances, self.common)
212
215
self.m_revnos = other_branch.get_revision_id_to_revno_map()
213
216
self.new_base = self.graph.find_unique_lca(revision_a,