diff --git a/tests/test-http-clone-r b/tests/test-http-clone-r new file mode 100755 --- /dev/null +++ b/tests/test-http-clone-r @@ -0,0 +1,78 @@ +#!/bin/sh + +hg init remote +cd remote +echo "# creating 'remote'" +cat >>afile <>afile <>afile <>afile <>afile <>afile <fred <>afile <> $DAEMON_PIDS + +echo "# clone remote via stream" +for i in 0 1 2 3 4 5 6 7 8; do + hg clone -r "$i" http://localhost:20061/ test-"$i" 2>&1 + if cd test-"$i"; then + hg verify + cd .. + fi +done +cd test-8 +hg pull ../test-7 +hg verify +cd .. +cd test-1 +hg pull -r 4 http://localhost:20061/ 2>&1 +hg verify +hg pull http://localhost:20061/ 2>&1 +cd .. +cd test-2 +hg pull -r 5 http://localhost:20061/ 2>&1 +hg verify +hg pull http://localhost:20061/ 2>&1 +hg verify +cd ..