~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Martin Pool
  • Date: 2005-07-11 07:33:45 UTC
  • Revision ID: mbp@sourcefrog.net-20050711073345-177b10e674961bda
- merge John's code to give the tree root an explicit file id

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
 
144
144
 
145
145
class EmptyTree(Tree):
146
 
    def __init__(self):
 
146
    def __init__(self, root_id):
147
147
        from bzrlib.inventory import Inventory
148
 
        self._inventory = Inventory()
 
148
        self._inventory = Inventory(root_id)
149
149
 
150
150
    def has_filename(self, filename):
151
151
        return False