comparison tests/test-wireproto.t @ 3176:1b58e0121689 mercurial-4.3

test-compat: merge stable into mercurial-4.3
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 07 Nov 2017 13:05:37 +0100
parents f5d472b7e800 3afe20410b55
children a7050ab9d8c1 68aeeb4d4b8f
comparison
equal deleted inserted replaced
3166:e1a230cc4527 3176:1b58e0121689
182 (skipping discovery of obsolescence markers, will exchange everything) 182 (skipping discovery of obsolescence markers, will exchange everything)
183 (controled by 'experimental.evolution.obsdiscovery' configuration) 183 (controled by 'experimental.evolution.obsdiscovery' configuration)
184 obsmarker-exchange: 376 bytes received 184 obsmarker-exchange: 376 bytes received
185 185
186 $ cd .. 186 $ cd ..
187
188 And disable it server side too:
189
190 $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log --config experimental.evolution.obsdiscovery=no
191 $ cat hg.pid >> $DAEMON_PIDS
192
193 $ curl -s http://localhost:$HGPORT/?cmd=capabilities
194 _evoext_getbundle_obscommon batch branchmap bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Aobsmarkers%3DV0%2CV1%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps changegroupsubset compression=zstd,zlib getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-eol)
195
196 Check we cannot use pushkey for marker exchange anymore
197
198 $ hg debugpushkey http://localhost:$HGPORT/ obsolete
199 abort: HTTP Error 410: won't exchange obsmarkers through pushkey
200 [255]
201 $ hg debugpushkey ssh://user@dummy/server obsolete
202 remote: abort: won't exchange obsmarkers through pushkey
203 remote: (upgrade your client or server to use the bundle2 protocol)
204 abort: unexpected response: empty string
205 [255]
206
207 But we do let it goes fine on repository with exchange disabled:
208
209 $ $RUNTESTDIR/killdaemons.py $DAEMON_PIDS
210 $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log --config experimental.evolution='!'
211 $ hg debugpushkey http://localhost:$HGPORT/ obsolete