~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/serializer/v4.py

  • Committer: John Arbash Meinel
  • Date: 2007-12-18 20:57:34 UTC
  • mto: This revision was merged to the branch mainline in revision 3126.
  • Revision ID: john@arbash-meinel.com-20071218205734-khopeuh6xh1gcqbk
Update the last couple of places that referred to Provider.get_parents() directly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
343
343
            revision_order.remove(self.target)
344
344
            revision_order.append(self.target)
345
345
        self.add_mp_records('inventory', None, inv_vf, revision_order)
346
 
        parents_list = self.repository.get_parents(revision_order)
347
 
        for parents, revision_id in zip(parents_list, revision_order):
 
346
        parent_map = self.repository.get_parent_map(revision_order)
 
347
        for revision_id in revision_order:
 
348
            parents = parent_map.get(revision_id, None)
348
349
            revision_text = self.repository.get_revision_xml(revision_id)
349
350
            self.bundle.add_fulltext_record(revision_text, parents,
350
351
                                       'revision', revision_id)