revlog: fix error message when data are missing
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 03 May 2021 12:25:12 +0200
changeset 47165 590f2364d33a
parent 47164 04f2f94836a5
child 47166 c9ae2e7fe154
revlog: fix error message when data are missing The error message the message was not using the requested offset, but the adjusted offset to that read more data for improved caching. This resulted in confusing error message. Differential Revision: https://phab.mercurial-scm.org/D10591
mercurial/revlog.py
--- a/mercurial/revlog.py	Mon May 03 12:25:01 2021 +0200
+++ b/mercurial/revlog.py	Mon May 03 12:25:12 2021 +0200
@@ -1556,7 +1556,7 @@
                     % (
                         self._indexfile if self._inline else self._datafile,
                         length,
-                        realoffset,
+                        offset,
                         len(d) - startoffset,
                     )
                 )