# HG changeset patch # User Pierre-Yves David # Date 1722761331 -7200 # Node ID f0be60ed62426bc8f28e7877ca8b1d86c79aad45 # Parent 50b3ff0ec2976adb6c46fb6fa54e2cc14314440b manifest: align some vfs option access on the fact we might not have options This make the usage consistent with the other option. Caught by pytype. diff -r 50b3ff0ec297 -r f0be60ed6242 mercurial/manifest.py --- a/mercurial/manifest.py Sun Aug 04 10:49:48 2024 +0200 +++ b/mercurial/manifest.py Sun Aug 04 10:48:51 2024 +0200 @@ -1605,10 +1605,12 @@ # stacks of commits, the number can go up, hence the config knob below. cachesize = 4 optiontreemanifest = False + persistentnodemap = False opts = getattr(opener, 'options', None) if opts is not None: cachesize = opts.get(b'manifestcachesize', cachesize) optiontreemanifest = opts.get(b'treemanifest', False) + persistentnodemap = opts.get(b'persistent-nodemap', False) self._treeondisk = optiontreemanifest or treemanifest @@ -1637,7 +1639,7 @@ checkambig=not bool(tree), mmaplargeindex=True, upperboundcomp=MAXCOMPRESSION, - persistentnodemap=opener.options.get(b'persistent-nodemap', False), + persistentnodemap=persistentnodemap, ) self.index = self._revlog.index