Mercurial > hg-stable
view tests/test-bundle-type @ 7029:b84d27386285
hgweb: Respond with HTTP 403 for disabled archive types instead of 404
This makes it easier for clients/users to distinct between supported
but disabled and unsupported archive types.
author | Rocco Rutte <pdmef@gmx.net> |
---|---|
date | Fri, 05 Sep 2008 17:28:37 +0200 |
parents | d6b53b48943f |
children | 41b7802b089a |
line wrap: on
line source
#!/bin/sh echo % bundle w/o type option hg init t1 hg init t2 cd t1 echo blablablablabla > file.txt hg ci -Ama hg log | grep summary hg bundle ../b1 ../t2 cd ../t2 hg pull ../b1 hg up hg log | grep summary cd .. for t in "None" "bzip2" "gzip"; do echo % test bundle type $t hg init t$t cd t1 hg bundle -t $t ../b$t ../t$t head -n 1 ../b$t | cut -b 1-6 cd ../t$t hg pull ../b$t hg up hg log | grep summary cd .. done echo % test garbage file echo garbage > bgarbage hg init tgarbage cd tgarbage hg pull ../bgarbage cd .. echo % test invalid bundle type cd t1 hg bundle -a -t garbage ../bgarbage cd ..