175
175
otherbranch = tree.bzrdir.create_branch(name='anotherbranch')
176
176
otherbranch.generate_revision_history(revid1)
177
177
self.run_bzr(['switch', 'anotherbranch'], working_dir='branch-1')
178
179
self.assertEquals(tree.last_revision(), revid1)
181
182
def test_switch_only_revision(self):
182
183
tree = self._create_sample_tree()