mercurial/util.py
changeset 51679 5f37c36f36b9
parent 51677 522b4d729e89
child 51685 39e2b2d062c1
--- 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