comparison mercurial/changelog.py @ 44351:5962fd0d1045

nodemap: write nodemap data on disk Let us start writing data on disk (so that we can read it from there later). This series of changeset is going to focus first on having data on disk and updating it. Right now the data is written right next to the revlog data, in the store. We might move it to cache (with proper cache validation mechanism) later, but for now revlog have a storevfs instance and it is simpler to us it. The right location for this data is not the focus of this series. Differential Revision: https://phab.mercurial-scm.org/D7835
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 15 Jan 2020 15:47:21 +0100
parents 7f67f53492f7
children 897f0ce4b484
comparison
equal deleted inserted replaced
44350:c577bb4a04d4 44351:5962fd0d1045
383 opener, 383 opener,
384 indexfile, 384 indexfile,
385 datafile=datafile, 385 datafile=datafile,
386 checkambig=True, 386 checkambig=True,
387 mmaplargeindex=True, 387 mmaplargeindex=True,
388 persistentnodemap=opener.options.get(
389 b'exp-persistent-nodemap', False
390 ),
388 ) 391 )
389 392
390 if self._initempty and (self.version & 0xFFFF == revlog.REVLOGV1): 393 if self._initempty and (self.version & 0xFFFF == revlog.REVLOGV1):
391 # changelogs don't benefit from generaldelta. 394 # changelogs don't benefit from generaldelta.
392 395