diff -r 74e2f4b609f6 -r bc4373babd04 mercurial/manifest.py --- a/mercurial/manifest.py Wed Jun 12 17:30:24 2019 +0100 +++ b/mercurial/manifest.py Fri Apr 26 00:28:22 2019 +0200 @@ -1417,6 +1417,10 @@ self.write() self._read = False +# and upper bound of what we expect from compression +# (real live value seems to be "3") +MAXCOMPRESSION = 10 + @interfaceutil.implementer(repository.imanifeststorage) class manifestrevlog(object): '''A revlog that stores manifest texts. This is responsible for caching the @@ -1467,7 +1471,8 @@ self._revlog = revlog.revlog(opener, indexfile, # only root indexfile is cached checkambig=not bool(tree), - mmaplargeindex=True) + mmaplargeindex=True, + upperboundcomp=MAXCOMPRESSION) self.index = self._revlog.index self.version = self._revlog.version