350
350
def _test_default_stacked_location(self):
351
351
branch = self.make_branch('a', format=self.get_format_name())
354
354
def test_stack_and_unstack(self):
355
355
branch = self.make_branch('a', format=self.get_format_name())
356
356
target = self.make_branch_and_tree('b', format=self.get_format_name())
357
357
branch.set_stacked_on(target.branch.base)
359
359
revid = target.commit('foo')
360
360
self.assertTrue(branch.repository.has_revision(revid))
361
361
branch.set_stacked_on(None)
363
363
self.assertFalse(branch.repository.has_revision(revid))
365
365
def test_open_opens_stacked_reference(self):