~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisiontree.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:
66
66
    def get_file_lines(self, file_id):
67
67
        return osutils.split_lines(self.get_file_text(file_id))
68
68
 
69
 
    def get_file_text(self, file_id):
 
69
    def get_file_text(self, file_id, path=None):
70
70
        return list(self.iter_files_bytes([(file_id, None)]))[0][1]
71
71
 
72
72
    def get_file(self, file_id, path=None):