~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: Aaron Bentley
  • Date: 2006-06-12 21:17:37 UTC
  • mto: This revision was merged to the branch mainline in revision 1788.
  • Revision ID: abentley@panoramicfeedback.com-20060612211737-43ac00ac632f27fe
Implement get_texts

Show diffs side-by-side

added added

removed removed

Lines of Context:
252
252
        return ''.join(self.get_lines(version_id))
253
253
    get_string = get_text
254
254
 
 
255
    def get_texts(self, version_ids):
 
256
        """Return the texts of listed versions as a list of strings.
 
257
 
 
258
        Raises RevisionNotPresent if version is not present in
 
259
        file history.
 
260
        """
 
261
        return [''.join(self.get_lines(v)) for v in version_ids]
 
262
 
255
263
    def get_lines(self, version_id):
256
264
        """Return version contents as a sequence of lines.
257
265