~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_merge.py

  • Committer: Patch Queue Manager
  • Date: 2011-09-26 15:42:24 UTC
  • mfrom: (6165.2.3 avoid-revision-history)
  • Revision ID: pqm@pqm.ubuntu.com-20110926154224-by4s1qzbroh115wn
(jelmer) Remove several calls to Branch.revision_history(). (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
420
420
        self.addCleanup(tree.unlock)
421
421
        self.build_tree(['a'])
422
422
        tree.add('a')
423
 
        tree.commit("added a")
424
 
        first_rev = tree.branch.revision_history()[0]
 
423
        first_rev = tree.commit("added a")
425
424
        merger = _mod_merge.Merger.from_revision_ids(None, tree,
426
425
                                          _mod_revision.NULL_REVISION,
427
426
                                          first_rev)
509
508
        self.addCleanup(tree.unlock)
510
509
        self.build_tree(['a'])
511
510
        tree.add('a')
512
 
        tree.commit("added a")
 
511
        first_rev = tree.commit("added a")
513
512
        old_root_id = tree.get_root_id()
514
 
        first_rev = tree.branch.revision_history()[0]
515
513
        merger = _mod_merge.Merger.from_revision_ids(None, tree,
516
514
                                          _mod_revision.NULL_REVISION,
517
515
                                          first_rev)