Mercurial > public > mercurial-scm > hg
comparison mercurial/wireprotov1server.py @ 50541:e6948aafda6f
clonebundles: move the manifest reading in a dedicated function
We are about to make the logic more advanced to help hosting solution, so we
need to centralize it first.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 26 May 2023 16:55:52 +0200 |
parents | 4cafe20b79b6 |
children | 9e24f8442640 |
comparison
equal
deleted
inserted
replaced
50537:9db197c73138 | 50541:e6948aafda6f |
---|---|
272 | 272 |
273 Extensions may wrap this command to filter or dynamically emit data | 273 Extensions may wrap this command to filter or dynamically emit data |
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 = [ |
283 b'lookup', | 282 b'lookup', |
284 b'branchmap', | 283 b'branchmap', |