Mercurial > hg
comparison tests/test-lfs-serve.t @ 50381:2cf264e9aa75
configitems: enable changegroup3 by default (unless using infinitepush)
The LFS extension requires this, and if it isn't enabled on the client (or the
LFS extension isn't loaded), a web client gets a 500 instead of a sensible error
message. Now it gets a different (client) error, but maybe it can be handled
more gracefully. c0f11347b107 indicates that treemanifest repos have this issue
too. 29cfc474c5fd mentions gating this behind `experimental` so that the format
could change, but that was 7 years ago and we now have an experimental
`changegroup4` as well.
We can keep this as a config for the next cycle in case someone runs into an
unexpected problem, and then jettison it if the infinitepush bundle name changes
are either acceptable as-is or can be created differently.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 27 Feb 2023 23:04:09 -0500 |
parents | 9987d14ad63f |
children | 10db46e128d4 |
comparison
equal
deleted
inserted
replaced
50380:806ca6bd0719 | 50381:2cf264e9aa75 |
---|---|
306 | 306 |
307 $ hg init $TESTTMP/client4_pull | 307 $ hg init $TESTTMP/client4_pull |
308 $ hg -R $TESTTMP/client4_pull pull http://localhost:$HGPORT | 308 $ hg -R $TESTTMP/client4_pull pull http://localhost:$HGPORT |
309 pulling from http://localhost:$HGPORT/ | 309 pulling from http://localhost:$HGPORT/ |
310 requesting all changes | 310 requesting all changes |
311 remote: abort: no common changegroup version | 311 adding changesets |
312 abort: pull failed on remote | 312 adding manifests |
313 [100] | 313 adding file changes |
314 transaction abort! | |
315 rollback completed | |
316 abort: missing processor for flag '0x2000' | |
317 [50] | |
314 $ hg debugrequires -R $TESTTMP/client4_pull/ | grep 'lfs' | 318 $ hg debugrequires -R $TESTTMP/client4_pull/ | grep 'lfs' |
315 [1] | 319 [1] |
316 $ hg debugrequires -R $SERVER_PATH --config extensions.lfs= | grep 'lfs' | 320 $ hg debugrequires -R $SERVER_PATH --config extensions.lfs= | grep 'lfs' |
317 lfs | 321 lfs |
318 | 322 |