303
327
def _match_on(self, branch, revs):
304
328
from branch import Branch
305
329
from revision import common_ancestor, MultipleRevisionSources
307
331
revision_a = branch.last_revision()
308
332
revision_b = other_branch.last_revision()
309
333
for r, b in ((revision_a, branch), (revision_b, other_branch)):
313
338
rev_id = common_ancestor(revision_a, revision_b, revision_source)
315
340
revno = branch.revision_id_to_revno(rev_id)