~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bundle.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-19 14:17:24 UTC
  • mto: This revision was merged to the branch mainline in revision 5808.
  • Revision ID: jelmer@samba.org-20110419141724-4o6pk5wjr23o6z58
Branch.set_revision_history.

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
    )
503
504
                old.unlock()
504
505
        if not _mod_revision.is_null(rev_id):
505
506
            rh = self.b1.revision_history()
506
 
            tree.branch.set_revision_history(rh[:rh.index(rev_id)+1])
 
507
            self.applyDeprecated(symbol_versioning.deprecated_in((2, 4, 0)),
 
508
                tree.branch.set_revision_history, rh[:rh.index(rev_id)+1])
507
509
            tree.update()
508
510
            delta = tree.changes_from(self.b1.repository.revision_tree(rev_id))
509
511
            self.assertFalse(delta.has_changed(),