/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Martin Pool
  • Date: 2005-08-01 21:19:39 UTC
  • Revision ID: mbp@sourcefrog.net-20050801211939-909a1ff75b6e935d
- remove root_id from EmptyTree

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Tree classes, representing directory at point in time.
18
18
"""
19
19
 
20
 
from osutils import pumpfile, appendpath, fingerprint_file
21
20
import os
22
21
 
 
22
import bzrlib
23
23
from bzrlib.trace import mutter, note
24
24
from bzrlib.errors import BzrError
 
25
from bzrlib.inventory import Inventory
 
26
from bzrlib.osutils import pumpfile, appendpath, fingerprint_file
25
27
 
26
 
import bzrlib
27
28
 
28
29
exporters = {}
29
30
 
146
147
 
147
148
 
148
149
class EmptyTree(Tree):
149
 
    def __init__(self, root_id):
150
 
        from bzrlib.inventory import Inventory
151
 
        self._inventory = Inventory(root_id)
 
150
    def __init__(self):
 
151
        self._inventory = Inventory()
152
152
 
153
153
    def has_filename(self, filename):
154
154
        return False