149
149
tree = self._create_sample_tree()
150
150
checkout = tree.branch.create_checkout('checkout', lightweight=True)
151
151
self.run_bzr(['switch', 'branch-1', '-r1'], working_dir='checkout')
155
155
def test_switch_only_revision(self):
156
156
tree = self._create_sample_tree()
157
157
checkout = tree.branch.create_checkout('checkout', lightweight=True)
160
160
self.run_bzr(['switch', '-r1'], working_dir='checkout')
163
163
# Check that we don't accept a range
165
165
['bzr switch --revision takes exactly one revision identifier'],