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