~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 19:32:00 UTC
  • mfrom: (3606.5.14 1.6)
  • mto: This revision was merged to the branch mainline in revision 3667.
  • Revision ID: john@arbash-meinel.com-20080829193200-wdvz1vr3sgga1tp9
MergeĀ inĀ 1.6.1rc1

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