46
47
return wt.extract('b-id')
48
49
def test_extract_in_checkout(self):
50
51
self.extract_in_checkout(a_branch)
51
52
b_branch = branch.Branch.open('branch/b')
52
53
b_branch_ref = branch.Branch.open('a/b')
53
54
self.assertEqual(b_branch.base, b_branch_ref.base)
55
56
def test_extract_in_deep_checkout(self):
57
58
self.build_tree(['a/', 'a/b/', 'a/b/c/', 'a/b/c/d/', 'a/b/c/d/e'])
58
59
wt = a_branch.create_checkout('a', lightweight=True)
59
60
wt.add(['b', 'b/c', 'b/c/d', 'b/c/d/e/'], ['b-id', 'c-id', 'd-id',