Mercurial > hg
changeset 39047:a1f934573c0b
parsers: adjust pure-python version to mimic a3dacabd476b
This was caught by the tests, to my surprise. I'll also follow up with
a test of the index[-1] behavior so we can be sure that remains
consistent, as I think that currently has no coverage.
Differential Revision: https://phab.mercurial-scm.org/D4183
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 09 Aug 2018 13:13:16 -0400 |
parents | a450d460774e |
children | d722020bbd9d |
files | mercurial/pure/parsers.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/pure/parsers.py Thu Aug 09 13:34:33 2018 -0400 +++ b/mercurial/pure/parsers.py Thu Aug 09 13:13:16 2018 -0400 @@ -52,7 +52,7 @@ return i def __getitem__(self, i): - if i == -1 or i == len(self): + if i == -1: return (0, 0, 0, -1, -1, -1, -1, nullid) i = self._fix_index(i) if i >= self._lgt: