~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_fetch.py

  • Committer: Vincent Ladeuil
  • Date: 2008-08-31 10:51:07 UTC
  • mfrom: (3668 +trunk)
  • mto: (3668.3.1 trunk2)
  • mto: This revision was merged to the branch mainline in revision 3671.
  • Revision ID: v.ladeuil+lp@free.fr-20080831105107-kfmrr44gizyp6ckf
merge bzr.dev@3668

Show diffs side-by-side

added added

removed removed

Lines of Context:
374
374
        self.assertEqual(('get_record_stream', [('rev-one',)],
375
375
                          target._fetch_order, False),
376
376
                         self.find_get_record_stream(source.inventories.calls))
 
377
        # Because of bugs in the old fetch code, revisions could accidentally
 
378
        # have deltas present in knits. However, it was never intended, so we
 
379
        # always for include_delta_closure=True, to make sure we get fulltexts.
 
380
        # bug #261339
377
381
        self.assertEqual(('get_record_stream', [('rev-one',)],
378
 
                          target._fetch_order, False),
 
382
                          target._fetch_order, True),
379
383
                         self.find_get_record_stream(source.revisions.calls))
380
384
        # XXX: Signatures is special, and slightly broken. The
381
385
        # standard item_keys_introduced_by actually does a lookup for every
386
390
        # we care about.
387
391
        signature_calls = source.signatures.calls[-1:]
388
392
        self.assertEqual(('get_record_stream', [('rev-one',)],
389
 
                          target._fetch_order, False),
 
393
                          target._fetch_order, True),
390
394
                         self.find_get_record_stream(signature_calls))
391
395
 
392
396
    def test_fetch_no_deltas_with_delta_closure(self):