~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/groupcompress.py

  • Committer: John Arbash Meinel
  • Date: 2009-08-26 16:44:27 UTC
  • mto: (4634.6.10 2.0)
  • mto: This revision was merged to the branch mainline in revision 4664.
  • Revision ID: john@arbash-meinel.com-20090826164427-lrly8srccu1327oh
Teach VF.get_known_graph_ancestry to go to fallbacks (bug #419241)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1210
1210
 
1211
1211
    def get_known_graph_ancestry(self, keys):
1212
1212
        """Get a KnownGraph instance with the ancestry of keys."""
 
1213
        # Note that this is identical to
 
1214
        # KnitVersionedFiles.get_known_graph_ancestry, but they don't share
 
1215
        # ancestry.
1213
1216
        parent_map, missing_keys = self._index._graph_index.find_ancestry(keys,
1214
 
                                                                          0)
 
1217
        0)
 
1218
        for fallback in self._fallback_vfs:
 
1219
            if not missing_keys:
 
1220
                break
 
1221
            (f_parent_map, f_missing_keys) = fallback._index._graph_index.find_ancestry(
 
1222
                                                missing_keys, 0)
 
1223
            parent_map.update(f_parent_map)
 
1224
            missing_keys = f_missing_keys
1215
1225
        kg = _mod_graph.KnownGraph(parent_map)
1216
1226
        return kg
1217
1227