~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-22 23:41:03 UTC
  • mfrom: (2988.1.9 reconcile.memory)
  • Revision ID: pqm@pqm.ubuntu.com-20071122234103-fn117zncqrqv39me
(robertc) Improve the performance of reconcile and reduce its memory
        consumption. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
305
305
            #self._real_repository = self.bzrdir._real_bzrdir.open_repository()
306
306
            self._set_real_repository(self.bzrdir._real_bzrdir.open_repository())
307
307
 
 
308
    def find_text_key_references(self):
 
309
        """Find the text key references within the repository.
 
310
 
 
311
        :return: a dictionary mapping (file_id, revision_id) tuples to altered file-ids to an iterable of
 
312
        revision_ids. Each altered file-ids has the exact revision_ids that
 
313
        altered it listed explicitly.
 
314
        :return: A dictionary mapping text keys ((fileid, revision_id) tuples)
 
315
            to whether they were referred to by the inventory of the
 
316
            revision_id that they contain. The inventory texts from all present
 
317
            revision ids are assessed to generate this report.
 
318
        """
 
319
        self._ensure_real()
 
320
        return self._real_repository.find_text_key_references()
 
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
 
308
333
    def get_revision_graph(self, revision_id=None):
309
334
        """See Repository.get_revision_graph()."""
310
335
        if revision_id is None: