~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

  • Committer: Aaron Bentley
  • Date: 2008-10-12 15:38:00 UTC
  • mto: This revision was merged to the branch mainline in revision 3803.
  • Revision ID: aaron@aaronbentley.com-20081012153800-8ff72bdslnbknfdi
Test Tree.get_file_lines, provide a default implementation

Show diffs side-by-side

added added

removed removed

Lines of Context:
1625
1625
    def get_file(self, file_id, path=None):
1626
1626
        return StringIO(self.get_file_text(file_id))
1627
1627
 
1628
 
    def get_file_lines(self, file_id):
1629
 
        return osutils.split_lines(self.get_file_text(file_id))
1630
 
 
1631
1628
    def get_file_size(self, file_id):
1632
1629
        """See Tree.get_file_size"""
1633
1630
        return self.inventory[file_id].text_size