259
259
"""Ensure we do unique_lca using data from two repos"""
260
260
mainline_tree = self.prepare_memory_tree('mainline')
261
261
self.build_ancestry(mainline_tree, mainline)
264
264
# This is cheating, because the revisions in the graph are actually
265
265
# different revisions, despite having the same revision-id.
266
266
feature_tree = self.prepare_memory_tree('feature')
267
267
self.build_ancestry(feature_tree, feature_branch)
269
270
graph = mainline_tree.branch.repository.get_graph(
270
271
feature_tree.branch.repository)
271
272
self.assertEqual('rev2b', graph.find_unique_lca('rev2a', 'rev3b'))