~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bundle.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:
28
28
    merge,
29
29
    osutils,
30
30
    revision as _mod_revision,
 
31
    symbol_versioning,
31
32
    tests,
32
33
    treebuilder,
33
34
    )
506
507
                old.unlock()
507
508
        if not _mod_revision.is_null(rev_id):
508
509
            rh = self.b1.revision_history()
509
 
            tree.branch.set_revision_history(rh[:rh.index(rev_id)+1])
 
510
            self.applyDeprecated(symbol_versioning.deprecated_in((2, 4, 0)),
 
511
                tree.branch.set_revision_history, rh[:rh.index(rev_id)+1])
510
512
            tree.update()
511
513
            delta = tree.changes_from(self.b1.repository.revision_tree(rev_id))
512
514
            self.assertFalse(delta.has_changed(),