Mercurial > public > mercurial-scm > hg-stable
comparison tests/test-check-interfaces.py @ 48561:04688c51f81f
exchangev2: remove it
As discussed on the mailing list, this is incomplete and unused with little
hope of revival.
Differential Revision: https://phab.mercurial-scm.org/D11954
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Tue, 07 Dec 2021 16:44:22 +0100 |
parents | 119790e1c67c |
children | 6000f5b25c9b |
comparison
equal
deleted
inserted
replaced
48560:d6c53b40b078 | 48561:04688c51f81f |
---|---|
37 unionrepo, | 37 unionrepo, |
38 vfs as vfsmod, | 38 vfs as vfsmod, |
39 wireprotoserver, | 39 wireprotoserver, |
40 wireprototypes, | 40 wireprototypes, |
41 wireprotov1peer, | 41 wireprotov1peer, |
42 wireprotov2server, | |
43 ) | 42 ) |
44 | 43 |
45 testdir = os.path.dirname(__file__) | 44 testdir = os.path.dirname(__file__) |
46 rootdir = pycompat.fsencode(os.path.normpath(os.path.join(testdir, '..'))) | 45 rootdir = pycompat.fsencode(os.path.normpath(os.path.join(testdir, '..'))) |
47 | 46 |
126 | 125 |
127 checkzobject(badpeer()) | 126 checkzobject(badpeer()) |
128 | 127 |
129 ziverify.verifyClass(repository.ipeerbase, httppeer.httppeer) | 128 ziverify.verifyClass(repository.ipeerbase, httppeer.httppeer) |
130 checkzobject(httppeer.httppeer(None, None, None, dummyopener(), None, None)) | 129 checkzobject(httppeer.httppeer(None, None, None, dummyopener(), None, None)) |
131 | |
132 ziverify.verifyClass(repository.ipeerv2, httppeer.httpv2peer) | |
133 checkzobject(httppeer.httpv2peer(None, b'', b'', None, None, None)) | |
134 | 130 |
135 ziverify.verifyClass(repository.ipeerbase, localrepo.localpeer) | 131 ziverify.verifyClass(repository.ipeerbase, localrepo.localpeer) |
136 checkzobject(localrepo.localpeer(dummyrepo())) | 132 checkzobject(localrepo.localpeer(dummyrepo())) |
137 | 133 |
138 ziverify.verifyClass( | 134 ziverify.verifyClass( |
156 None, | 152 None, |
157 None, | 153 None, |
158 ) | 154 ) |
159 ) | 155 ) |
160 | 156 |
161 ziverify.verifyClass(repository.ipeerbase, sshpeer.sshv2peer) | |
162 checkzobject( | |
163 sshpeer.sshv2peer( | |
164 ui, | |
165 b'ssh://localhost/foo', | |
166 b'', | |
167 dummypipe(), | |
168 dummypipe(), | |
169 None, | |
170 None, | |
171 ) | |
172 ) | |
173 | |
174 ziverify.verifyClass(repository.ipeerbase, bundlerepo.bundlepeer) | 157 ziverify.verifyClass(repository.ipeerbase, bundlerepo.bundlepeer) |
175 checkzobject(bundlerepo.bundlepeer(dummyrepo())) | 158 checkzobject(bundlerepo.bundlepeer(dummyrepo())) |
176 | 159 |
177 ziverify.verifyClass(repository.ipeerbase, statichttprepo.statichttppeer) | 160 ziverify.verifyClass(repository.ipeerbase, statichttprepo.statichttppeer) |
178 checkzobject(statichttprepo.statichttppeer(dummyrepo())) | 161 checkzobject(statichttprepo.statichttppeer(dummyrepo())) |
191 | 174 |
192 ziverify.verifyClass( | 175 ziverify.verifyClass( |
193 wireprototypes.baseprotocolhandler, wireprotoserver.sshv1protocolhandler | 176 wireprototypes.baseprotocolhandler, wireprotoserver.sshv1protocolhandler |
194 ) | 177 ) |
195 ziverify.verifyClass( | 178 ziverify.verifyClass( |
196 wireprototypes.baseprotocolhandler, wireprotoserver.sshv2protocolhandler | |
197 ) | |
198 ziverify.verifyClass( | |
199 wireprototypes.baseprotocolhandler, | 179 wireprototypes.baseprotocolhandler, |
200 wireprotoserver.httpv1protocolhandler, | 180 wireprotoserver.httpv1protocolhandler, |
201 ) | 181 ) |
202 ziverify.verifyClass( | |
203 wireprototypes.baseprotocolhandler, | |
204 wireprotov2server.httpv2protocolhandler, | |
205 ) | |
206 | 182 |
207 sshv1 = wireprotoserver.sshv1protocolhandler(None, None, None) | 183 sshv1 = wireprotoserver.sshv1protocolhandler(None, None, None) |
208 checkzobject(sshv1) | 184 checkzobject(sshv1) |
209 sshv2 = wireprotoserver.sshv2protocolhandler(None, None, None) | |
210 checkzobject(sshv2) | |
211 | 185 |
212 httpv1 = wireprotoserver.httpv1protocolhandler(None, None, None) | 186 httpv1 = wireprotoserver.httpv1protocolhandler(None, None, None) |
213 checkzobject(httpv1) | 187 checkzobject(httpv1) |
214 httpv2 = wireprotov2server.httpv2protocolhandler(None, None) | |
215 checkzobject(httpv2) | |
216 | 188 |
217 ziverify.verifyClass(repository.ifilestorage, filelog.filelog) | 189 ziverify.verifyClass(repository.ifilestorage, filelog.filelog) |
218 ziverify.verifyClass(repository.imanifestdict, manifest.manifestdict) | 190 ziverify.verifyClass(repository.imanifestdict, manifest.manifestdict) |
219 ziverify.verifyClass(repository.imanifestdict, manifest.treemanifest) | 191 ziverify.verifyClass(repository.imanifestdict, manifest.treemanifest) |
220 ziverify.verifyClass( | 192 ziverify.verifyClass( |