~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Jelmer Vernooij
  • Date: 2011-07-23 11:16:56 UTC
  • mto: This revision was merged to the branch mainline in revision 6044.
  • Revision ID: jelmer@samba.org-20110723111656-xi14q3a4forj4ixd
Move Repository._eliminate_revisions_not_present to VFRepository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
340
340
        """
341
341
        self.control_files.break_lock()
342
342
 
343
 
    @needs_read_lock
344
 
    def _eliminate_revisions_not_present(self, revision_ids):
345
 
        """Check every revision id in revision_ids to see if we have it.
346
 
 
347
 
        Returns a set of the present revisions.
348
 
        """
349
 
        result = []
350
 
        graph = self.get_graph()
351
 
        parent_map = graph.get_parent_map(revision_ids)
352
 
        # The old API returned a list, should this actually be a set?
353
 
        return parent_map.keys()
354
 
 
355
343
    @staticmethod
356
344
    def create(a_bzrdir):
357
345
        """Construct the current default format repository in a_bzrdir."""