revlog: cleanup some outdated docstrings
authorRaphaël Gomès <rgomes@octobus.net>
Wed, 19 Jun 2024 17:06:05 +0200
changeset 51855 eb9dea148233
parent 51854 5baa52ca4932
child 51856 384016e91947
revlog: cleanup some outdated docstrings
mercurial/revlog.py
mercurial/revlogutils/randomaccessfile.py
--- 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.