~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: John Arbash Meinel
  • Date: 2006-10-16 01:50:48 UTC
  • mfrom: (2078 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2080.
  • Revision ID: john@arbash-meinel.com-20061016015048-0f22df07e38093da
[merge] bzr.dev 2078

Show diffs side-by-side

added added

removed removed

Lines of Context:
218
218
class EmptyTree(Tree):
219
219
 
220
220
    def __init__(self):
221
 
        self._inventory = Inventory()
 
221
        self._inventory = Inventory(root_id=None)
222
222
        warn('EmptyTree is deprecated as of bzr 0.9 please use '
223
223
            'repository.revision_tree instead.',
224
224
            DeprecationWarning, stacklevel=2)
236
236
        assert self._inventory[file_id].kind == "directory"
237
237
        return "directory"
238
238
 
239
 
    def list_files(self):
 
239
    def list_files(self, include_root=False):
240
240
        return iter([])
241
241
    
242
242
    def __contains__(self, file_id):