~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

Add a new repositoy method _generate_text_key_index for use by reconcile/check.

Show diffs side-by-side

added added

removed removed

Lines of Context:
319
319
        self._ensure_real()
320
320
        return self._real_repository.find_text_key_references()
321
321
 
 
322
    def _generate_text_key_index(self):
 
323
        """Generate a new text key index for the repository.
 
324
 
 
325
        This is an expensive function that will take considerable time to run.
 
326
 
 
327
        :return: A dict mapping (file_id, revision_id) tuples to a list of
 
328
            parents, also (file_id, revision_id) tuples.
 
329
        """
 
330
        self._ensure_real()
 
331
        return self._real_repository._generate_text_key_index()
 
332
 
322
333
    def get_revision_graph(self, revision_id=None):
323
334
        """See Repository.get_revision_graph()."""
324
335
        if revision_id is None: