comparison mercurial/bundlecaches.py @ 50575: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 f4a540c203d7
children dc201a09e82c
comparison
equal deleted inserted replaced
50574:9db197c73138 50575:e6948aafda6f
22 from .utils import stringutil 22 from .utils import stringutil
23 23
24 urlreq = util.urlreq 24 urlreq = util.urlreq
25 25
26 CB_MANIFEST_FILE = b'clonebundles.manifest' 26 CB_MANIFEST_FILE = b'clonebundles.manifest'
27
28 def get_manifest(repo):
29 return repo.vfs.tryread(CB_MANIFEST_FILE)
27 30
28 31
29 @attr.s 32 @attr.s
30 class bundlespec: 33 class bundlespec:
31 compression = attr.ib() 34 compression = attr.ib()