~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_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:
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):