~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Aaron Bentley
  • Date: 2008-10-12 15:26:50 UTC
  • mto: This revision was merged to the branch mainline in revision 3803.
  • Revision ID: aaron@aaronbentley.com-20081012152650-urs9hisrqa3qj3bk
Test Tree.get_file_text() and supply default implementation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
433
433
        file_obj = self.get_file_byname(path)
434
434
        return (file_obj, _fstat(file_obj.fileno()))
435
435
 
436
 
    def get_file_text(self, file_id):
437
 
        return self.get_file(file_id).read()
438
 
 
439
436
    def get_file_byname(self, filename):
440
437
        return file(self.abspath(filename), 'rb')
441
438