Mercurial > hg
diff tests/test-hgweb-commands.t @ 36612:e89959970a08
wireproto: don't expose changegroupsubset capability if not available
We just marked the changegroupsubset command as only available to
version 1 of the wire transports. There is a capability of the same
name of the command that indicates if the command is supported.
This commit teaches the capabilities code to conditionally emit that
capability depending on whether the command is available for the
current transport.
Most test output is reordering of capabilities. But the limited tests
for version 2 of the SSH protocol do show the capability disappearing.
Differential Revision: https://phab.mercurial-scm.org/D2486
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 27 Feb 2018 15:23:04 -0800 |
parents | ab239e3de23b |
children | 2859c6fa4fc2 |
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t Tue Feb 27 15:06:10 2018 -0800 +++ b/tests/test-hgweb-commands.t Tue Feb 27 15:23:04 2018 -0800 @@ -1914,7 +1914,7 @@ $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities'; echo 200 Script output follows - lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=$BUNDLE2_COMPRESSIONS$ + lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=$BUNDLE2_COMPRESSIONS$ heads @@ -2113,10 +2113,10 @@ (plain version to check the format) - $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities' | dd ibs=75 count=1 2> /dev/null; echo + $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities' | dd ibs=76 count=1 2> /dev/null; echo 200 Script output follows - lookup changegroupsubset branchmap pushkey known + lookup branchmap pushkey known getbundle unbundle (spread version to check the content) @@ -2127,13 +2127,13 @@ follows lookup - changegroupsubset branchmap pushkey known getbundle unbundlehash batch + changegroupsubset stream-preferred streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$