comparison mercurial/localrepo.py @ 48674:6fd9a17c32ab

requirements: add an official `REVLOG_COMPRESSION_ZSTD` const Such constant was missing and its value was missing from the set of requirements that needs to be preserved through stream clone. This did not had any consequence yet as the "bundle 2 does not filter its requirements" is shadowing the issue. However we are now in a situation where we can fix this issue. So lets do it next. With the preparation work on test, changing the streamreqs value only impact two tests, where checking the full value seems to remains relevant. Important note: Since older version of Mercurial used the old `supportedformat` class attribute to check for stream requirement they supported, older version will consider this requirements to prevent them from using streaming clone. Even as they support this requirements for years. Pack for stable will be send to fix it, but they will have to be backported to older version if needed. Differential Revision: https://phab.mercurial-scm.org/D12083
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 24 Jan 2022 12:44:20 +0100
parents 348d2c6b5048
children 4c1135d15700
comparison
equal deleted inserted replaced
48673:c3239f2ee61b 48674:6fd9a17c32ab
930 for name in util.compengines: 930 for name in util.compengines:
931 engine = util.compengines[name] 931 engine = util.compengines[name]
932 if engine.available() and engine.revlogheader(): 932 if engine.available() and engine.revlogheader():
933 supported.add(b'exp-compression-%s' % name) 933 supported.add(b'exp-compression-%s' % name)
934 if engine.name() == b'zstd': 934 if engine.name() == b'zstd':
935 supported.add(b'revlog-compression-zstd') 935 supported.add(requirementsmod.REVLOG_COMPRESSION_ZSTD)
936 936
937 return supported 937 return supported
938 938
939 939
940 def ensurerequirementsrecognized(requirements, supported): 940 def ensurerequirementsrecognized(requirements, supported):