/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bundle.py

  • Committer: Jelmer Vernooij
  • Date: 2011-10-05 12:16:17 UTC
  • mto: This revision was merged to the branch mainline in revision 6216.
  • Revision ID: jelmer@samba.org-20111005121617-cpmg83tbv5l2eweq
Avoid all iter_reverse_revision_history calls.

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,
32
31
    tests,
33
32
    treebuilder,
34
33
    )
510
509
                new.unlock()
511
510
                old.unlock()
512
511
        if not _mod_revision.is_null(rev_id):
513
 
            rh = list(self.b1.repository.iter_reverse_revision_history(
514
 
                self.b1.last_revision()))
515
 
            rh.reverse()
516
 
            self.applyDeprecated(symbol_versioning.deprecated_in((2, 4, 0)),
517
 
                tree.branch.set_revision_history, rh[:rh.index(rev_id)+1])
 
512
            tree.branch.generate_revision_history(rev_id)
518
513
            tree.update()
519
514
            delta = tree.changes_from(self.b1.repository.revision_tree(rev_id))
520
515
            self.assertFalse(delta.has_changed(),