~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Alexander Belchenko
  • Date: 2007-11-19 22:54:30 UTC
  • mfrom: (3006 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3008.
  • Revision ID: bialix@ukr.net-20071119225430-x0ewosrsagis0yno
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
    def fileids_altered_by_revision_ids(self, revision_ids):
175
175
        """This is a wrapper to strip TREE_ROOT if it occurs"""
176
176
        repo = self.branch.repository
177
 
        root_id = self.branch.basis_tree().inventory.root.file_id
 
177
        root_id = self.branch.basis_tree().get_root_id()
178
178
        result = repo.fileids_altered_by_revision_ids(revision_ids)
179
179
        if root_id in result:
180
180
            del result[root_id]
245
245
        repo.lock_read()
246
246
        self.addCleanup(repo.unlock)
247
247
        file_ids = repo.fileids_altered_by_revision_ids([revision_id])
248
 
        root_id = main_wt.basis_tree().path2id('')
 
248
        root_id = main_wt.basis_tree().get_root_id()
249
249
        if root_id in file_ids:
250
250
            self.assertEqual({file_id:set([revision_id]),
251
251
                              root_id:set([revision_id])