changeset 47165:590f2364d33a

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 03 May 2021 12:25:12 +0200
parents 04f2f94836a5
children c9ae2e7fe154
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,
                     )
                 )