148
148
greedy_fetch(branch, other_branch)
149
149
revision_a = branch.last_patch()
150
150
revision_b = other_branch.last_patch()
153
152
root, ancestors, descendants, common = \
155
154
except bzrlib.errors.NoCommonRoot:
156
155
raise bzrlib.errors.NoCommonAncestor(revision_a, revision_b)
157
156
distances = node_distances(descendants, ancestors, root)
158
157
base = select_farthest(distances, common)
159
158
n_history = branch.revision_history()