changeset 48496:30741bbea550

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 15 Dec 2021 15:28:30 +0100
parents e293ff808a05
children 2c6084f67a86
files mercurial/pure/parsers.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: