~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisionspec.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:
397
397
        """We can get any revision id in the repository"""
398
398
        # XXX: This may change in the future, but for now, it is true
399
399
        self.tree2.commit('alt third', rev_id='alt_r3')
400
 
        self.tree.branch.fetch(self.tree2.branch, 'alt_r3')
 
400
        self.tree.branch.repository.fetch(self.tree2.branch.repository,
 
401
                                          revision_id='alt_r3')
401
402
        self.assertInHistoryIs(None, 'alt_r3', 'revid:alt_r3')
402
403
 
403
404
    def test_unicode(self):
474
475
    def test_alt_no_parents(self):
475
476
        new_tree = self.make_branch_and_tree('new_tree')
476
477
        new_tree.commit('first', rev_id='new_r1')
477
 
        self.tree.branch.fetch(new_tree.branch, 'new_r1')
 
478
        self.tree.branch.repository.fetch(new_tree.branch.repository,
 
479
                                          revision_id='new_r1')
478
480
        self.assertInHistoryIs(0, 'null:', 'before:revid:new_r1')
479
481
 
480
482
    def test_as_revision_id(self):
639
641
        # XXX: Right now, we use fetch() to make sure the remote revisions
640
642
        # have been pulled into the local branch. We may change that
641
643
        # behavior in the future.
642
 
        self.assertTrue(self.tree.branch.repository.has_revision('new_r3'))
 
644
        self.failUnless(self.tree.branch.repository.has_revision('new_r3'))
643
645
 
644
646
    def test_no_commits(self):
645
647
        new_tree = self.make_branch_and_tree('new_tree')