38 wireprototypes, |
38 wireprototypes, |
39 wireprotov1peer, |
39 wireprotov1peer, |
40 wireprotov2server, |
40 wireprotov2server, |
41 ) |
41 ) |
42 |
42 |
43 rootdir = pycompat.fsencode( |
43 testdir = os.path.dirname(__file__) |
44 os.path.normpath(os.path.join(os.path.dirname(__file__), '..'))) |
44 rootdir = pycompat.fsencode(os.path.normpath(os.path.join(testdir, '..'))) |
|
45 |
|
46 sys.path[0:0] = [testdir] |
|
47 import simplestorerepo |
|
48 del sys.path[0] |
45 |
49 |
46 def checkzobject(o, allowextra=False): |
50 def checkzobject(o, allowextra=False): |
47 """Verify an object with a zope interface.""" |
51 """Verify an object with a zope interface.""" |
48 ifaces = zi.providedBy(o) |
52 ifaces = zi.providedBy(o) |
49 if not ifaces: |
53 if not ifaces: |
175 ziverify.verifyClass(repository.imanifestrevisionwritable, |
179 ziverify.verifyClass(repository.imanifestrevisionwritable, |
176 manifest.memtreemanifestctx) |
180 manifest.memtreemanifestctx) |
177 ziverify.verifyClass(repository.imanifestlog, manifest.manifestlog) |
181 ziverify.verifyClass(repository.imanifestlog, manifest.manifestlog) |
178 ziverify.verifyClass(repository.imanifeststorage, manifest.manifestrevlog) |
182 ziverify.verifyClass(repository.imanifeststorage, manifest.manifestrevlog) |
179 |
183 |
|
184 ziverify.verifyClass(repository.irevisiondelta, |
|
185 simplestorerepo.simplestorerevisiondelta) |
|
186 ziverify.verifyClass(repository.ifilestorage, simplestorerepo.filestorage) |
|
187 ziverify.verifyClass(repository.iverifyproblem, |
|
188 simplestorerepo.simplefilestoreproblem) |
|
189 |
180 vfs = vfsmod.vfs(b'.') |
190 vfs = vfsmod.vfs(b'.') |
181 fl = filelog.filelog(vfs, b'dummy.i') |
191 fl = filelog.filelog(vfs, b'dummy.i') |
182 checkzobject(fl, allowextra=True) |
192 checkzobject(fl, allowextra=True) |
183 |
193 |
184 # Conforms to imanifestlog. |
194 # Conforms to imanifestlog. |