comparison tests/test-hgweb-commands.t @ 13942:88f0e41d8802

wireproto: allow unbundle with hashed heads parameter (issue2126) Current wire protocol of unbundle sends the list of all heads in the remote repository to avoid race condition. This causes "URL too long" error on HTTP server when the repository has many heads. This change allows clients to send SHA1 hash of sorted head hashes instead. Also, this introduces "unbundlehash" capability to inform them that the server accepts hashed heads parameter.
author Shuhei Takahashi <takahashi.shuhei@gmail.com>
date Sat, 16 Apr 2011 01:05:56 +0900
parents ea726c97c1b6
children b24e5a708fad
comparison
equal deleted inserted replaced
13941:924f40b977ee 13942:88f0e41d8802
941 capabilities 941 capabilities
942 942
943 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '?cmd=capabilities'; echo 943 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '?cmd=capabilities'; echo
944 200 Script output follows 944 200 Script output follows
945 945
946 lookup changegroupsubset branchmap pushkey known getbundle unbundle=HG10GZ,HG10BZ,HG10UN 946 lookup changegroupsubset branchmap pushkey known getbundle unbundlehash unbundle=HG10GZ,HG10BZ,HG10UN
947 947
948 heads 948 heads
949 949
950 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '?cmd=heads' 950 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '?cmd=heads'
951 200 Script output follows 951 200 Script output follows