273
base_branch, base_tree = get_tree(base_revision, tempdir, "base")
274
274
if base_revision[1] == -1:
275
base_branch, base_tree = get_tree(base_revision, tempdir, "base")
275
276
base_rev_id = base_branch.last_patch()
276
277
elif base_revision[1] is None:
279
base_branch, base_tree = get_tree((base_revision[0], "revid:%s" % base_rev_id), tempdir, "base")
281
base_branch, base_tree = get_tree(base_revision, tempdir, "base")
279
282
base_rev_id = base_branch.lookup_revision(base_revision[1])
280
283
if base_rev_id is not None:
281
284
base_is_ancestor = is_ancestor(this_rev_id, base_rev_id,