--- a/mercurial/revlog.py Thu Sep 12 10:09:06 2024 +0200
+++ b/mercurial/revlog.py Wed Jun 19 17:06:05 2024 +0200
@@ -935,9 +935,7 @@
"""Obtain decompressed chunks for the specified revisions.
Accepts an iterable of numeric revisions that are assumed to be in
- ascending order. Also accepts an optional already-open file handle
- to be used for reading. If used, the seek position of the file will
- not be preserved.
+ ascending order.
This function is similar to calling ``self._chunk()`` multiple times,
but is faster.
--- a/mercurial/revlogutils/randomaccessfile.py Thu Sep 12 10:09:06 2024 +0200
+++ b/mercurial/revlogutils/randomaccessfile.py Wed Jun 19 17:06:05 2024 +0200
@@ -171,11 +171,7 @@
def read_chunk(self, offset, length):
"""Read a chunk of bytes from the file.
- Accepts an absolute offset, length to read, and an optional existing
- file handle to read from.
-
- If an existing file handle is passed, it will be seeked and the
- original seek position will NOT be restored.
+ Accepts an absolute offset, length to read.
Returns a str or buffer of raw byte data.