~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: Martin Pool
  • Date: 2006-06-20 05:32:16 UTC
  • mfrom: (1797 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1798.
  • Revision ID: mbp@sourcefrog.net-20060620053216-817857d7ca3e9d1f
[merge] bzr.dev

Show diffs side-by-side

added added

removed removed

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