66
66
def test_checkout_dash_r(self):
67
67
out, err = self.run_bzr(['checkout', '-r', '-2', 'branch', 'checkout'])
69
68
# the working tree should now be at revision '1' with the content
71
70
result = bzrdir.BzrDir.open('checkout')
72
71
self.assertEqual(['1'], result.open_workingtree().get_parent_ids())
75
74
def test_checkout_light_dash_r(self):
76
75
out, err = self.run_bzr(['checkout','--lightweight', '-r', '-2',
79
77
# the working tree should now be at revision '1' with the content
81
79
result = bzrdir.BzrDir.open('checkout')
82
80
self.assertEqual(['1'], result.open_workingtree().get_parent_ids())
85
83
def test_checkout_reconstitutes_working_trees(self):
86
84
# doing a 'bzr checkout' in the directory of a branch with no tree