155
155
# => new branch will be created, but switch fails and the current
159
160
self.run_bzr_error(['Cannot switch a branch, only a checkout'],
160
161
'branch --switch ../a ../b', working_dir='current')
161
162
a = branch.Branch.open('a')
162
163
b = branch.Branch.open('b')
163
164
self.assertEqual(a.last_revision(), b.last_revision())
164
165
work = branch.Branch.open('current')
167
168
def test_branch_into_empty_dir(self):
168
169
t = self.example_branch('source')