~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_fetch.py

  • Committer: Vincent Ladeuil
  • Date: 2010-01-25 17:48:22 UTC
  • mto: (4987.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4988.
  • Revision ID: v.ladeuil+lp@free.fr-20100125174822-nce4l19sbwx83jvq
Deploying the new overrideAttr facility further reduces the complexity
and make the code clearer.

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
 
        self.addAttrCleanup(target._format, '_fetch_uses_deltas')
408
 
        target._format._fetch_uses_deltas = False
 
407
        self.overrideAttr(target._format, '_fetch_uses_deltas', False)
409
408
        target.fetch(source, revision_id='rev-one')
410
409
        self.assertEqual(('get_record_stream', [('file-id', 'rev-one')],
411
410
                          target._format._fetch_order, True),