# HG changeset patch # User Pierre-Yves David # Date 1639578510 -3600 # Node ID 30741bbea5506331aa8fa41dbc12013b8950b04b # Parent e293ff808a059170bfb749b065a4c37731b52da3 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 diff -r e293ff808a05 -r 30741bbea550 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: