revlog: add some information about the revision we cannot find
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 15 Dec 2021 15:28:30 +0100
changeset 48496 30741bbea550
parent 48495 e293ff808a05
child 48497 2c6084f67a86
revlog: add some information about the revision we cannot find Parameter to Exception are good, use them. Differential Revision: https://phab.mercurial-scm.org/D11933
mercurial/pure/parsers.py
--- a/mercurial/pure/parsers.py	Thu Dec 16 17:34:51 2021 +0100
+++ b/mercurial/pure/parsers.py	Wed Dec 15 15:28:30 2021 +0100
@@ -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: