Mercurial > public > mercurial-scm > hg
diff mercurial/cext/parsers.pyi @ 47043:12450fbea288
manifests: push down expected node length into the parser
This strictly enforces the node length in the manifest lines according
to what the repository expects. One test case moves large hash testing
into the non-treemanifest part as treemanifests don't provide an
interface for overriding just the node length for now.
Differential Revision: https://phab.mercurial-scm.org/D10533
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Fri, 30 Apr 2021 02:11:58 +0200 |
parents | 8dca9051a859 |
children | 84391ddf4c78 |
line wrap: on
line diff
--- a/mercurial/cext/parsers.pyi Fri Apr 30 03:19:45 2021 +0200 +++ b/mercurial/cext/parsers.pyi Fri Apr 30 02:11:58 2021 +0200 @@ -29,7 +29,7 @@ # From manifest.c class lazymanifest: - def __init__(self, data: bytes): ... + def __init__(self, nodelen: int, data: bytes): ... def __iter__(self) -> Iterator[bytes]: ... def __len__(self) -> int: ...