~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Aaron Bentley
  • Date: 2008-04-29 15:14:03 UTC
  • mfrom: (3389 +trunk)
  • mto: (3380.3.3 cleanup)
  • mto: This revision was merged to the branch mainline in revision 3392.
  • Revision ID: aaron@aaronbentley.com-20080429151403-r1ak2ew0mdp30o53
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
        """
255
255
        raise NotImplementedError(self.get_file_mtime)
256
256
 
 
257
    def get_file_size(self, file_id):
 
258
        """Return the size of a file in bytes.
 
259
 
 
260
        This applies only to regular files.  If invoked on directories or
 
261
        symlinks, it will return None.
 
262
        :param file_id: The file-id of the file
 
263
        """
 
264
        raise NotImplementedError(self.get_file_size)
 
265
 
257
266
    def get_file_by_path(self, path):
258
267
        return self.get_file(self._inventory.path2id(path), path)
259
268