[Request] [+ ] D10591: revlog: fix error message when data are missing
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Mon May 3 12:07:37 UTC 2021
marmoute created this revision.
Herald added a reviewer: indygreg.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
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.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D10591
AFFECTED FILES
mercurial/revlog.py
CHANGE DETAILS
diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -1556,7 +1556,7 @@
% (
self._indexfile if self._inline else self._datafile,
length,
- realoffset,
+ offset,
len(d) - startoffset,
)
)
To: marmoute, indygreg, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210503/8d46b4ca/attachment.html>
More information about the Mercurial-patches
mailing list