/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/test_remote.py

  • Committer: Andrew Bennetts
  • Date: 2011-02-07 04:14:29 UTC
  • mfrom: (5535.4.26 fetch-all-tags-309682)
  • mto: This revision was merged to the branch mainline in revision 5648.
  • Revision ID: andrew.bennetts@canonical.com-20110207041429-3kc1blj34rvvxod9
Merge fetch-all-tags-309682.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010 Canonical Ltd
 
1
# Copyright (C) 2006-2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
64
64
    SmartServerRepositoryGetStream_1_19,
65
65
    )
66
66
from bzrlib.tests import (
67
 
    condition_isinstance,
68
 
    multiply_tests,
69
67
    test_server,
70
68
    )
71
69
from bzrlib.tests.scenarios import load_tests_apply_scenarios
74
72
    RemoteTransport,
75
73
    RemoteSSHTransport,
76
74
    RemoteTCPTransport,
77
 
)
 
75
    )
78
76
 
79
77
 
80
78
load_tests = load_tests_apply_scenarios
3213
3211
                override_existing=True)
3214
3212
 
3215
3213
    def test_fetch_everything_backwards_compat(self):
3216
 
        """Can fetch with EverythingResult even with pre 2.3 servers.
 
3214
        """Can fetch with EverythingResult even with pre 2.4 servers.
3217
3215
        
3218
 
        Pre-2.3 do not support 'everything' searches with the
 
3216
        Pre-2.4 do not support 'everything' searches with the
3219
3217
        Repository.get_stream_1.19 verb.
3220
3218
        """
3221
3219
        verb_log = []
3222
3220
        class OldGetStreamVerb(SmartServerRepositoryGetStream_1_19):
3223
3221
            """A version of the Repository.get_stream_1.19 verb patched to
3224
 
            reject 'everything' searches the way 2.2 and earlier do.
 
3222
            reject 'everything' searches the way 2.3 and earlier do.
3225
3223
            """
3226
3224
            def recreate_search(self, repository, search_bytes, discard_excess=False):
3227
3225
                verb_log.append(search_bytes.split('\n', 1)[0])