=== modified file 'bzrlib/fetch.py' --- bzrlib/fetch.py 2008-08-18 22:34:21 +0000 +++ bzrlib/fetch.py 2008-08-28 21:47:04 +0000 @@ -255,7 +255,10 @@ to_sf.insert_record_stream(filter_absent(from_sf.get_record_stream( [(rev_id,) for rev_id in revs], self.to_repository._fetch_order, - not self.to_repository._fetch_uses_deltas))) + True))) + # Bug #261339, some knit repositories accidentally had deltas in their + # revision stream, when you weren't ever supposed to have deltas. + # So we now *force* fulltext copying for signatures and revisions self._fetch_just_revision_texts(revs) def _fetch_just_revision_texts(self, version_ids): @@ -264,7 +267,10 @@ to_rf.insert_record_stream(from_rf.get_record_stream( [(rev_id,) for rev_id in version_ids], self.to_repository._fetch_order, - not self.to_repository._fetch_uses_deltas)) + True)) + # Bug #261339, some knit repositories accidentally had deltas in their + # revision stream, when you weren't ever supposed to have deltas. + # So we now *force* fulltext copying for signatures and revisions def _generate_root_texts(self, revs): """This will be called by __fetch between fetching weave texts and @@ -380,6 +386,8 @@ parents) def fetch_revisions(self, revision_ids): + # TODO: should this batch them up rather than requesting 10,000 + # revisions at once? for revision in self.source.get_revisions(revision_ids): self.target.add_revision(revision.revision_id, revision)