comparison tests/test-clonebundles.t @ 48652: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 9c4204b7f3e4
children de3ac3d2c60b
comparison
equal deleted inserted replaced
48651:c3239f2ee61b 48652:6fd9a17c32ab
277 277
278 Stream clone bundles are supported 278 Stream clone bundles are supported
279 279
280 $ hg -R server debugcreatestreamclonebundle packed.hg 280 $ hg -R server debugcreatestreamclonebundle packed.hg
281 writing 613 bytes for 4 files 281 writing 613 bytes for 4 files
282 bundle requirements: generaldelta, revlogv1, sparserevlog (no-rust !) 282 bundle requirements: generaldelta, revlogv1, sparserevlog (no-rust no-zstd !)
283 bundle requirements: generaldelta, persistent-nodemap, revlogv1, sparserevlog (rust !) 283 bundle requirements: generaldelta, revlog-compression-zstd, revlogv1, sparserevlog (no-rust zstd !)
284 bundle requirements: generaldelta, persistent-nodemap, revlog-compression-zstd, revlogv1, sparserevlog (rust !)
284 285
285 No bundle spec should work 286 No bundle spec should work
286 287
287 $ cat > server/.hg/clonebundles.manifest << EOF 288 $ cat > server/.hg/clonebundles.manifest << EOF
288 > http://localhost:$HGPORT1/packed.hg 289 > http://localhost:$HGPORT1/packed.hg