~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-18 03:22:46 UTC
  • mfrom: (1756.2.17 log.perf)
  • Revision ID: pqm@pqm.ubuntu.com-20060618032246-5be492b564b839d5
Implement get_revisions efficiently, optimize log for screenfuls of text

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