/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_commit_merge.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:
17
17
 
18
18
import os
19
19
 
20
 
from bzrlib import check, osutils
 
20
from bzrlib import (
 
21
    check,
 
22
    osutils,
 
23
    revision as _mod_revision,
 
24
    )
21
25
from bzrlib.errors import PointlessCommit
22
26
from bzrlib.tests import (
23
27
    TestCaseWithTransport,
55
59
        wty.commit('merge from x', rev_id='y@u-0-2', allow_pointless=False)
56
60
 
57
61
        self.assertEquals(by.revno(), 3)
 
62
        graph = wty.branch.repository.get_graph()
58
63
        self.assertEquals(list(
59
 
            by.repository.iter_reverse_revision_history(
60
 
                by.last_revision())),
 
64
            graph.iter_lefthand_ancestry(by.last_revision(),
 
65
                [_mod_revision.NULL_REVISION])),
61
66
            ['y@u-0-2', 'y@u-0-1', base_rev])
62
67
        rev = by.repository.get_revision('y@u-0-2')
63
68
        self.assertEquals(rev.parent_ids,