~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: 2007-12-01 00:10:53 UTC
  • mfrom: (3035.2.8 fetch_check_parents_165290)
  • Revision ID: pqm@pqm.ubuntu.com-20071201001053-zi6k6s2817c1p97s
(John Arbash Meinel) Fix bug #165290: have pack=>pack fetch check for
        missing compression parents

Show diffs side-by-side

added added

removed removed

Lines of Context:
1242
1242
                raise errors.NoSuchIdInRepository(self, file_id)
1243
1243
            yield callable_data, weave.get_lines(revision_id)
1244
1244
 
1245
 
    def _generate_text_key_index(self):
 
1245
    def _generate_text_key_index(self, text_key_references=None):
1246
1246
        """Generate a new text key index for the repository.
1247
1247
 
1248
1248
        This is an expensive function that will take considerable time to run.
1254
1254
        # All revisions, to find inventory parents.
1255
1255
        revision_graph = self.get_revision_graph_with_ghosts()
1256
1256
        ancestors = revision_graph.get_ancestors()
1257
 
        text_key_references = self.find_text_key_references()
 
1257
        if text_key_references is None:
 
1258
            text_key_references = self.find_text_key_references()
1258
1259
        pb = ui.ui_factory.nested_progress_bar()
1259
1260
        try:
1260
1261
            return self._do_generate_text_key_index(ancestors,