~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/repository_implementations/test_fetch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-13 17:48:49 UTC
  • mfrom: (2946.3.5 tree_root_id)
  • Revision ID: pqm@pqm.ubuntu.com-20071113174849-2zsajpakcs8uy1bo
(John Arbash Meinel) Consolidate all calls to get the root id of a tree to use Tree.get_root_id()

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        # disk.
69
69
        knit3_repo = b_bzrdir.open_repository()
70
70
        rev1_tree = knit3_repo.revision_tree('rev1')
71
 
        lines = rev1_tree.get_file_lines(rev1_tree.inventory.root.file_id)
 
71
        lines = rev1_tree.get_file_lines(rev1_tree.get_root_id())
72
72
        self.assertEqual([], lines)
73
73
        b_branch = b_bzrdir.create_branch()
74
74
        b_branch.pull(tree_a.branch)