/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: John Arbash Meinel
  • Date: 2008-04-16 14:54:19 UTC
  • mto: This revision was merged to the branch mainline in revision 3373.
  • Revision ID: john@arbash-meinel.com-20080416145419-n2o7pkchnet77smi
Knit => knit fetching also has some very bad 'for x in revision_ids: has_revision_id()' calls

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):