~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: Robert Collins
  • Date: 2005-10-02 23:17:00 UTC
  • mto: This revision was merged to the branch mainline in revision 1397.
  • Revision ID: robertc@robertcollins.net-20051002231700-811f40dc74d4bc25
fetch should work with ghosts

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
               rev.committer,
185
185
               len(rev.parent_ids))
186
186
        self._copy_new_texts(rev_id, inv)
187
 
        self._copy_inventory(rev_id, inv_xml, rev.parent_ids)
188
 
        self._copy_ancestry(rev_id, rev.parent_ids)
 
187
        parents = rev.parent_ids
 
188
        for parent in parents:
 
189
            if not self.to_branch.has_revision(parent):
 
190
                parents.pop(parents.index(parent))
 
191
        self._copy_inventory(rev_id, inv_xml, parents)
 
192
        self._copy_ancestry(rev_id, parents)
189
193
        self.to_branch.revision_store.add(StringIO(rev_xml), rev_id)
190
194
 
191
195