~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: John Arbash Meinel
  • Date: 2008-08-29 02:05:22 UTC
  • mto: (3606.5.11 1.6)
  • mto: This revision was merged to the branch mainline in revision 3667.
  • Revision ID: john@arbash-meinel.com-20080829020522-kpkk0zvxf52oj3kh
Fix bug #261339, Always request full texts for Revision texts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
255
255
        to_sf.insert_record_stream(filter_absent(from_sf.get_record_stream(
256
256
            [(rev_id,) for rev_id in revs],
257
257
            self.to_repository._fetch_order,
258
 
            not self.to_repository._fetch_uses_deltas)))
 
258
            True)))
 
259
        # Bug #261339, some knit repositories accidentally had deltas in their
 
260
        # revision stream, when you weren't ever supposed to have deltas.
 
261
        # So we now *force* fulltext copying for signatures and revisions
259
262
        self._fetch_just_revision_texts(revs)
260
263
 
261
264
    def _fetch_just_revision_texts(self, version_ids):
264
267
        to_rf.insert_record_stream(from_rf.get_record_stream(
265
268
            [(rev_id,) for rev_id in version_ids],
266
269
            self.to_repository._fetch_order,
267
 
            not self.to_repository._fetch_uses_deltas))
 
270
            True))
 
271
        # Bug #261339, some knit repositories accidentally had deltas in their
 
272
        # revision stream, when you weren't ever supposed to have deltas.
 
273
        # So we now *force* fulltext copying for signatures and revisions
268
274
 
269
275
    def _generate_root_texts(self, revs):
270
276
        """This will be called by __fetch between fetching weave texts and
380
386
                                      parents)
381
387
 
382
388
    def fetch_revisions(self, revision_ids):
 
389
        # TODO: should this batch them up rather than requesting 10,000
 
390
        #       revisions at once?
383
391
        for revision in self.source.get_revisions(revision_ids):
384
392
            self.target.add_revision(revision.revision_id, revision)
385
393