~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

  • Committer: Jelmer Vernooij
  • Date: 2012-03-14 13:34:43 UTC
  • mto: This revision was merged to the branch mainline in revision 6503.
  • Revision ID: jelmer@samba.org-20120314133443-49xanzettqvnh7zh
Remove more .set_revision_history / .revision_history references.

Show diffs side-by-side

added added

removed removed

Lines of Context:
363
363
        self.assertPathDoesNotExist('a/.bzr/branch/bound')
364
364
        self.assertEqual('ftp://example.com', branch.get_bound_location())
365
365
 
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))],
370
 
            message='foo')
371
 
        builder.build_snapshot('bar', None, [], message='bar')
372
 
        branch = builder.get_branch()
373
 
        branch.lock_write()
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'])
382
 
 
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())