~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-15 18:19:33 UTC
  • mfrom: (1756.1.7 log.perf.submit)
  • Revision ID: pqm@pqm.ubuntu.com-20060615181933-dbc6e26a736493e3
Add get_revisions to repositories

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
        """
304
304
        if not revision_id or not isinstance(revision_id, basestring):
305
305
            raise InvalidRevisionId(revision_id=revision_id, branch=self)
306
 
        return self._revision_store.get_revision(revision_id,
307
 
                                                 self.get_transaction())
 
306
        return self._revision_store.get_revisions([revision_id],
 
307
                                                  self.get_transaction())[0]
 
308
    @needs_read_lock
 
309
    def get_revisions(self, revision_ids):
 
310
        return self._revision_store.get_revisions(revision_ids,
 
311
                                                  self.get_transaction())
308
312
 
309
313
    @needs_read_lock
310
314
    def get_revision_xml(self, revision_id):