[Request] [+ ] D11933: revlog: add some information about the revision we cannot find
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Thu Dec 16 17:43:35 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Parameter to Exception are good, use them.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11933
AFFECTED FILES
mercurial/pure/parsers.py
CHANGE DETAILS
diff --git a/mercurial/pure/parsers.py b/mercurial/pure/parsers.py
--- a/mercurial/pure/parsers.py
+++ b/mercurial/pure/parsers.py
@@ -647,7 +647,7 @@
if not isinstance(i, int):
raise TypeError(b"expecting int indexes")
if i < 0 or i >= len(self):
- raise IndexError
+ raise IndexError(i)
def __getitem__(self, i):
if i == -1:
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20211216/57ef1eef/attachment.html>
More information about the Mercurial-patches
mailing list