/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_push.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:
275
275
    def disableOptimisticGetParentMap(self):
276
276
        # Tweak some class variables to stop remote get_parent_map calls asking
277
277
        # for or receiving more data than the caller asked for.
278
 
        inter_class = repository.InterRepository
279
 
        self.addAttrCleanup(inter_class, '_walk_to_common_revisions_batch_size')
280
 
        inter_class._walk_to_common_revisions_batch_size = 1
281
 
        self.addAttrCleanup(SmartServerRepositoryGetParentMap,
282
 
                            'no_extra_results')
283
 
        SmartServerRepositoryGetParentMap.no_extra_results = True
 
278
        self.overrideAttr(repository.InterRepository,
 
279
                          '_walk_to_common_revisions_batch_size', 1)
 
280
        self.overrideAttr(SmartServerRepositoryGetParentMap,
 
281
                          'no_extra_results', True)
284
282
 
285
283
 
286
284
class TestPushHook(TestCaseWithBranch):