~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-20 21:01:40 UTC
  • mfrom: (5718.7.15 dprh)
  • Revision ID: pqm@pqm.ubuntu.com-20110420210140-1akzbrzuwftl390r
(Jelmer) Deprecate Branch.set_revision_history(). (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
349
349
        branch = builder.get_branch()
350
350
        branch.lock_write()
351
351
        self.addCleanup(branch.unlock)
352
 
        branch.set_revision_history(['foo', 'bar'])
353
 
        branch.set_revision_history(['foo'])
 
352
        self.applyDeprecated(symbol_versioning.deprecated_in((2, 4, 0)),
 
353
            branch.set_revision_history, ['foo', 'bar'])
 
354
        self.applyDeprecated(symbol_versioning.deprecated_in((2, 4, 0)),
 
355
                branch.set_revision_history, ['foo'])
354
356
        self.assertRaises(errors.NotLefthandHistory,
355
 
                          branch.set_revision_history, ['bar'])
 
357
            self.applyDeprecated, symbol_versioning.deprecated_in((2, 4, 0)),
 
358
            branch.set_revision_history, ['bar'])
356
359
 
357
360
    def do_checkout_test(self, lightweight=False):
358
361
        tree = self.make_branch_and_tree('source',