~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: 2008-04-17 15:53:59 UTC
  • mfrom: (3369.2.2 knit_fetch_regression)
  • Revision ID: pqm@pqm.ubuntu.com-20080417155359-m3nxwwr442bgmsne
(jam) Fix a performance regression in knit=>knit fetching.

Show diffs side-by-side

added added

removed removed

Lines of Context:
592
592
        Returns a set of the present revisions.
593
593
        """
594
594
        result = []
595
 
        for id in revision_ids:
596
 
            if self.has_revision(id):
597
 
               result.append(id)
598
 
        return result
 
595
        graph = self.get_graph()
 
596
        parent_map = graph.get_parent_map(revision_ids)
 
597
        # The old API returned a list, should this actually be a set?
 
598
        return parent_map.keys()
599
599
 
600
600
    @staticmethod
601
601
    def create(a_bzrdir):