~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart.py

  • Committer: Robert Collins
  • Date: 2009-02-27 01:02:40 UTC
  • mto: This revision was merged to the branch mainline in revision 4060.
  • Revision ID: robertc@robertcollins.net-20090227010240-35dzaxn8bah0razi
Move the fetch control attributes from Repository to RepositoryFormat.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
            "_request_class":bzrdir_mod.SmartServerRequestFindRepositoryV1}),
66
66
        ("find_repositoryV2", {
67
67
            "_request_class":bzrdir_mod.SmartServerRequestFindRepositoryV2}),
 
68
        ("find_repositoryV3", {
 
69
            "_request_class":bzrdir_mod.SmartServerRequestFindRepositoryV3}),
68
70
        ]
69
71
    to_adapt, result = split_suite_by_re(standard_tests,
70
72
        "TestSmartServerRequestFindRepository")
214
216
            subtrees = 'yes'
215
217
        else:
216
218
            subtrees = 'no'
217
 
        if (smart.bzrdir.SmartServerRequestFindRepositoryV2 ==
 
219
        if (smart.bzrdir.SmartServerRequestFindRepositoryV3 ==
 
220
            self._request_class):
 
221
            return SuccessfulSmartServerResponse(
 
222
                ('ok', '', rich_root, subtrees, 'no',
 
223
                 repo._format.network_name()))
 
224
        elif (smart.bzrdir.SmartServerRequestFindRepositoryV2 ==
218
225
            self._request_class):
219
226
            # All tests so far are on formats, and for non-external
220
227
            # repositories.