~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisionspec.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-16 01:09:56 UTC
  • mfrom: (5784.1.4 760435-less-fail)
  • Revision ID: pqm@pqm.ubuntu.com-20110416010956-5wrpm136qq2hz5f3
(mbp) rename and deprecate failUnlessExists and failIfExists (Martin Pool)

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):