58
59
class TestFetch(InTempDir):
60
66
br_a, br_b = make_branches()
61
67
assert not has_revision(br_b, br_a.revision_history()[3])
62
68
assert has_revision(br_b, br_a.revision_history()[2])
63
70
greedy_fetch(br_a, br_b, br_a.revision_history()[2])
64
74
assert not has_revision(br_b, br_a.revision_history()[3])
65
77
greedy_fetch(br_a, br_b, br_a.revision_history()[3])
66
78
assert has_revision(br_b, br_a.revision_history()[3])
67
79
assert not has_revision(br_a, br_b.revision_history()[3])