~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-08 00:24:38 UTC
  • mfrom: (1907.1.9 no-special-root)
  • Revision ID: pqm@pqm.ubuntu.com-20060808002438-4b8baf2d9282e154
Represent root entries using InventoryDirectory, not RootEntry

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
        return False
214
214
 
215
215
    def kind(self, file_id):
216
 
        assert self._inventory[file_id].kind == "root_directory"
217
 
        return "root_directory"
 
216
        assert self._inventory[file_id].kind == "directory"
 
217
        return "directory"
218
218
 
219
219
    def list_files(self):
220
220
        return iter([])
223
223
        return file_id in self._inventory
224
224
 
225
225
    def get_file_sha1(self, file_id, path=None):
226
 
        assert self._inventory[file_id].kind == "root_directory"
227
226
        return None
228
227
 
229
228