14 $ cat hg.pid >> $DAEMON_PIDS |
14 $ cat hg.pid >> $DAEMON_PIDS |
15 |
15 |
16 compression formats are advertised in compression capability |
16 compression formats are advertised in compression capability |
17 |
17 |
18 #if zstd |
18 #if zstd |
19 $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=capabilities' | tr ' ' '\n' | grep compression |
19 $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=capabilities' | tr ' ' '\n' | grep '^compression=zstd,zlib$' > /dev/null |
20 compression=zstd,zlib |
|
21 #else |
20 #else |
22 $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=capabilities' | tr ' ' '\n' | grep compression |
21 $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=capabilities' | tr ' ' '\n' | grep '^compression=zlib$' > /dev/null |
23 compression=zlib |
|
24 #endif |
22 #endif |
25 |
23 |
26 $ killdaemons.py |
24 $ killdaemons.py |
27 |
25 |
28 server.compressionengines can replace engines list wholesale |
26 server.compressionengines can replace engines list wholesale |
29 |
27 |
30 $ hg --config server.compressionengines=none -R server serve -p $HGPORT -d --pid-file hg.pid |
28 $ hg --config server.compressionengines=none -R server serve -p $HGPORT -d --pid-file hg.pid |
31 $ cat hg.pid > $DAEMON_PIDS |
29 $ cat hg.pid > $DAEMON_PIDS |
32 $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=capabilities' | tr ' ' '\n' | grep compression |
30 $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=capabilities' | tr ' ' '\n' | grep '^compression=none$' > /dev/null |
33 compression=none |
|
34 |
31 |
35 $ killdaemons.py |
32 $ killdaemons.py |
36 |
33 |
37 Order of engines can also change |
34 Order of engines can also change |
38 |
35 |
39 $ hg --config server.compressionengines=none,zlib -R server serve -p $HGPORT -d --pid-file hg.pid |
36 $ hg --config server.compressionengines=none,zlib -R server serve -p $HGPORT -d --pid-file hg.pid |
40 $ cat hg.pid > $DAEMON_PIDS |
37 $ cat hg.pid > $DAEMON_PIDS |
41 $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=capabilities' | tr ' ' '\n' | grep compression |
38 $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=capabilities' | tr ' ' '\n' | grep '^compression=none,zlib$' > /dev/null |
42 compression=none,zlib |
|
43 |
39 |
44 $ killdaemons.py |
40 $ killdaemons.py |
45 |
41 |
46 Start a default server again |
42 Start a default server again |
47 |
43 |