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