--- a/mercurial/util.py Mon Jul 08 17:02:27 2024 +0200
+++ b/mercurial/util.py Mon Jul 08 15:48:34 2024 +0200
@@ -440,6 +440,10 @@
return data
+def has_mmap_populate():
+ return hasattr(mmap, 'MAP_POPULATE')
+
+
def mmapread(fp, size=None, pre_populate=True):
"""Read a file content using mmap