363
363
self.assertPathDoesNotExist('a/.bzr/branch/bound')
364
364
self.assertEqual('ftp://example.com', branch.get_bound_location())
366
def test_set_revision_history(self):
367
builder = self.make_branch_builder('.', format=self.get_format_name())
368
builder.build_snapshot('foo', None,
369
[('add', ('', None, 'directory', None))],
371
builder.build_snapshot('bar', None, [], message='bar')
372
branch = builder.get_branch()
374
self.addCleanup(branch.unlock)
375
self.applyDeprecated(symbol_versioning.deprecated_in((2, 4, 0)),
376
branch.set_revision_history, ['foo', 'bar'])
377
self.applyDeprecated(symbol_versioning.deprecated_in((2, 4, 0)),
378
branch.set_revision_history, ['foo'])
379
self.assertRaises(errors.NotLefthandHistory,
380
self.applyDeprecated, symbol_versioning.deprecated_in((2, 4, 0)),
381
branch.set_revision_history, ['bar'])
383
366
def do_checkout_test(self, lightweight=False):
384
367
tree = self.make_branch_and_tree('source',
385
368
format=self.get_format_name_subtree())