/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: John Arbash Meinel
  • Date: 2006-05-27 03:23:29 UTC
  • mto: (1711.2.26 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1734.
  • Revision ID: john@arbash-meinel.com-20060527032329-e4d063ed4fd1738b
revertĀ 1735

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
from bzrlib.inventory import Inventory
27
27
from bzrlib.osutils import fingerprint_file
28
28
 
29
 
 
30
29
class Tree(object):
31
30
    """Abstract file tree.
32
31
 
172
171
    def has_filename(self, filename):
173
172
        return bool(self.inventory.path2id(filename))
174
173
 
175
 
    def has_file_or_id(self, filename, file_id):
176
 
        """Do we have this filename or file_id?
177
 
 
178
 
        Some trees are faster to lookup by filename, some
179
 
        are faster by id, if we have both, figure out which
180
 
        one is better.
181
 
        """
182
 
        # Default to has_id, since that is best for Revision trees
183
 
        return self.has_id(file_id)
184
 
 
185
174
    def list_files(self):
186
175
        # The only files returned by this are those from the version
187
176
        for path, entry in self.inventory.iter_entries():