~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: John Arbash Meinel
  • Date: 2009-05-12 20:15:21 UTC
  • mto: This revision was merged to the branch mainline in revision 4392.
  • Revision ID: john@arbash-meinel.com-20090512201521-x55cevhrk6bvqgln
Implement get_missing_parents in terms of _KeyRefs.

This gives _GCGraphIndex a _key_dependencies variable.

Things still fail, because get_missing_parent_inventories() assumes that
fileids_altered_by_revision_ids will return file_ids for revisions
outside of the actual revisions requested.
CHKInventoryRepository actually explicitly eliminates those keys.
We may just need a custom get_missing_parent_inventories, but one
way or another we have issues.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2882
2882
 
2883
2883
    def get_missing_parents(self):
2884
2884
        """Return the keys of missing parents."""
 
2885
        # If updating this, you should also update
 
2886
        # groupcompress._GCGraphIndex.get_missing_parents
2885
2887
        # We may have false positives, so filter those out.
2886
2888
        self._key_dependencies.add_keys(
2887
2889
            self.get_parent_map(self._key_dependencies.get_unsatisfied_refs()))