diff --git a/mercurial/pure/parsers.py b/mercurial/pure/parsers.py index 439ce34d81e67cbafe9f5f52f00a2ce8d40be7ad_bWVyY3VyaWFsL3B1cmUvcGFyc2Vycy5weQ==..7baf5f798ba96d97c1a593b3591704c3d1c8051e_bWVyY3VyaWFsL3B1cmUvcGFyc2Vycy5weQ== 100644 --- a/mercurial/pure/parsers.py +++ b/mercurial/pure/parsers.py @@ -37,6 +37,7 @@ indexfirst = struct.calcsize(b'Q') sizeint = struct.calcsize(b'i') indexsize = struct.calcsize(indexformatng) +nullitem = (0, 0, 0, -1, -1, -1, -1, nullid) def gettype(q): @@ -103,7 +104,7 @@ def __getitem__(self, i): if i == -1: - return (0, 0, 0, -1, -1, -1, -1, nullid) + return nullitem self._check_index(i) if i >= self._lgt: return self._extra[i - self._lgt]