Show More
@@ -25,6 +25,9 b' urlreq = util.urlreq' | |||||
25 |
|
25 | |||
26 | CB_MANIFEST_FILE = b'clonebundles.manifest' |
|
26 | CB_MANIFEST_FILE = b'clonebundles.manifest' | |
27 |
|
27 | |||
|
28 | def get_manifest(repo): | |||
|
29 | return repo.vfs.tryread(CB_MANIFEST_FILE) | |||
|
30 | ||||
28 |
|
31 | |||
29 | @attr.s |
|
32 | @attr.s | |
30 | class bundlespec: |
|
33 | class bundlespec: |
@@ -349,7 +349,7 b' class localpeer(repository.peer):' | |||||
349 | return self._caps |
|
349 | return self._caps | |
350 |
|
350 | |||
351 | def clonebundles(self): |
|
351 | def clonebundles(self): | |
352 | return self._repo.tryread(bundlecaches.CB_MANIFEST_FILE) |
|
352 | return bundlecaches.get_manifest(self._repo) | |
353 |
|
353 | |||
354 | def debugwireargs(self, one, two, three=None, four=None, five=None): |
|
354 | def debugwireargs(self, one, two, three=None, four=None, five=None): | |
355 | """Used to test argument passing over the wire""" |
|
355 | """Used to test argument passing over the wire""" |
@@ -274,9 +274,8 b' def clonebundles(repo, proto):' | |||||
274 | depending on the request. e.g. you could advertise URLs for the closest |
|
274 | depending on the request. e.g. you could advertise URLs for the closest | |
275 | data center given the client's IP address. |
|
275 | data center given the client's IP address. | |
276 | """ |
|
276 | """ | |
277 | return wireprototypes.bytesresponse( |
|
277 | manifest = bundlecaches.get_manifest(repo) | |
278 | repo.vfs.tryread(bundlecaches.CB_MANIFEST_FILE) |
|
278 | return wireprototypes.bytesresponse(manifest) | |
279 | ) |
|
|||
280 |
|
279 | |||
281 |
|
280 | |||
282 | wireprotocaps = [ |
|
281 | wireprotocaps = [ |
General Comments 0
You need to be logged in to leave comments.
Login now