diff -r 5b803e5c1325 -r ba205f944cb4 mercurial/util.py --- a/mercurial/util.py Mon Jun 24 13:14:05 2024 +0200 +++ b/mercurial/util.py Wed Jul 03 12:22:48 2024 +0200 @@ -441,6 +441,13 @@ def mmapread(fp, size=None): + """Read a file content using mmap + + The responsability of checking the file system is mmap safe is the + responsability of the caller. + + In some case, a normal string might be returned. + """ if size == 0: # size of 0 to mmap.mmap() means "all data" # rather than "zero bytes", so special case that.