~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisionspec.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-19 10:42:59 UTC
  • mto: This revision was merged to the branch mainline in revision 5806.
  • Revision ID: jelmer@samba.org-20110419104259-g9exlcp1f5jdu3ci
Move Inventory._get_mutable_inventory -> mutable_inventory_from_tree.

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