/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/knit.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:
1193
1193
    def get_known_graph_ancestry(self, keys):
1194
1194
        """Get a KnownGraph instance with the ancestry of keys."""
1195
1195
        parent_map, missing_keys = self._index.find_ancestry(keys)
 
1196
        for fallback in self._fallback_vfs:
 
1197
            if not missing_keys:
 
1198
                break
 
1199
            (f_parent_map, f_missing_keys) = fallback._index.find_ancestry(
 
1200
                                                missing_keys)
 
1201
            parent_map.update(f_parent_map)
 
1202
            missing_keys = f_missing_keys
1196
1203
        kg = _mod_graph.KnownGraph(parent_map)
1197
1204
        return kg
1198
1205