diff mercurial/bundlecaches.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 f4a540c203d7
children dc201a09e82c
line wrap: on
line diff
--- a/mercurial/bundlecaches.py	Mon May 29 17:04:14 2023 +0100
+++ b/mercurial/bundlecaches.py	Fri May 26 16:55:52 2023 +0200
@@ -25,6 +25,9 @@
 
 CB_MANIFEST_FILE = b'clonebundles.manifest'
 
+def get_manifest(repo):
+    return repo.vfs.tryread(CB_MANIFEST_FILE)
+
 
 @attr.s
 class bundlespec: