271
271
"""Ensure we do unique_lca using data from two repos"""
272
272
mainline_tree = self.prepare_memory_tree('mainline')
273
273
self.build_ancestry(mainline_tree, mainline)
276
276
# This is cheating, because the revisions in the graph are actually
277
277
# different revisions, despite having the same revision-id.
278
278
feature_tree = self.prepare_memory_tree('feature')
279
279
self.build_ancestry(feature_tree, feature_branch)
281
282
graph = mainline_tree.branch.repository.get_graph(
282
283
feature_tree.branch.repository)
283
284
self.assertEqual('rev2b', graph.find_unique_lca('rev2a', 'rev3b'))