~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-09 07:29:44 UTC
  • Revision ID: mbp@sourcefrog.net-20050309072944-375a1880a9251a80
files that have been deleted are not considered present in the WorkingTree

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
    def _get_store_filename(self, file_id):
154
154
        return self._rel(self.id2path(file_id))
155
155
 
 
156
    def has_id(self, file_id):
 
157
        # files that have been deleted are excluded
 
158
        if not self.inventory.has_id(file_id):
 
159
            return False
 
160
        return os.access(self._rel(self.inventory.id2path(file_id)), os.F_OK)
 
161
 
156
162
    def get_file_size(self, file_id):
157
163
        return os.stat(self._get_store_filename(file_id))[ST_SIZE]
158
164