~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 by Canonical Ltd
 
1
# Copyright (C) 2005 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
176
176
    def fileids_altered_by_revision_ids(self, revision_ids):
177
177
        """This is a wrapper to strip TREE_ROOT if it occurs"""
178
178
        repo = self.branch.repository
 
179
        root_id = self.branch.basis_tree().inventory.root.file_id
179
180
        result = repo.fileids_altered_by_revision_ids(revision_ids)
180
 
        if 'TREE_ROOT' in result:
181
 
            del result['TREE_ROOT']
 
181
        if root_id in result:
 
182
            del result[root_id]
182
183
        return result
183
184
 
184
185
    def test_fileids_altered_by_revision_ids(self):