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