~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revision.py

(gz) Fix test failure on alpha by correcting format string for
 gc_chk_sha1_record (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    )
28
28
from bzrlib.revision import NULL_REVISION
29
29
from bzrlib.tests import TestCase, TestCaseWithTransport
30
 
from bzrlib.tests.matchers import MatchesAncestry
 
30
from bzrlib.trace import mutter
31
31
 
32
32
# We're allowed to test deprecated interfaces
33
33
warnings.filterwarnings('ignore',
104
104
             ('a@u-0-5', ['a@u-0-0', 'a@u-0-1', 'a@u-0-2', 'a@u-0-3', 'a@u-0-4',
105
105
                          'b@u-0-3', 'b@u-0-4',
106
106
                          'b@u-0-5', 'a@u-0-5']),
107
 
             ('b@u-0-6', ['a@u-0-0', 'a@u-0-1', 'a@u-0-2', 'a@u-0-4',
 
107
             ('b@u-0-6', ['a@u-0-0', 'a@u-0-1', 'a@u-0-2',
108
108
                          'b@u-0-3', 'b@u-0-4',
109
109
                          'b@u-0-5', 'b@u-0-6']),
110
110
             ]
116
116
                    continue
117
117
                if rev_id in br2_only and not branch is br2:
118
118
                    continue
119
 
                self.assertThat(anc,
120
 
                    MatchesAncestry(branch.repository, rev_id))
 
119
                mutter('ancestry of {%s}: %r',
 
120
                       rev_id, branch.repository.get_ancestry(rev_id))
 
121
                result = sorted(branch.repository.get_ancestry(rev_id))
 
122
                self.assertEquals(result, [None] + sorted(anc))
121
123
 
122
124
 
123
125
class TestIntermediateRevisions(TestCaseWithTransport):