~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: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:
1632
1632
        """See Tree.get_file_size"""
1633
1633
        return self.inventory[file_id].text_size
1634
1634
 
1635
 
    def get_file_text(self, file_id):
 
1635
    def get_file_text(self, file_id, path=None):
1636
1636
        return list(self.iter_files_bytes([(file_id, None)]))[0][1]
1637
1637
 
1638
1638
    def get_reference_revision(self, file_id, path=None):