~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Martin Pool
  • Date: 2005-03-13 05:28:56 UTC
  • Revision ID: mbp@sourcefrog.net-20050313052856-3edd84094687cb11
remove dead commands

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