~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_fetch.py

  • Committer: Martin Pool
  • Date: 2010-02-23 07:43:11 UTC
  • mfrom: (4797.2.20 2.1)
  • mto: This revision was merged to the branch mainline in revision 5055.
  • Revision ID: mbp@sourcefrog.net-20100223074311-gnj55xdhrgz9l94e
Merge 2.1 back to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
404
404
        source.inventories = versionedfile.RecordingVersionedFilesDecorator(
405
405
                        source.inventories)
406
406
        # XXX: This won't work in general, but for the dirstate format it does.
407
 
        old_fetch_uses_deltas_setting = target._format._fetch_uses_deltas
408
 
        def restore():
409
 
            target._format._fetch_uses_deltas = old_fetch_uses_deltas_setting
410
 
        self.addCleanup(restore)
411
 
        target._format._fetch_uses_deltas = False
 
407
        self.overrideAttr(target._format, '_fetch_uses_deltas', False)
412
408
        target.fetch(source, revision_id='rev-one')
413
409
        self.assertEqual(('get_record_stream', [('file-id', 'rev-one')],
414
410
                          target._format._fetch_order, True),