Mercurial > public > mercurial-scm > hg-stable
diff tests/test-static-http @ 6028:6605a03cbf87
make static-http work with empty repos (issue965)
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Fri, 08 Feb 2008 11:50:37 +0100 |
parents | e3a0c092b4e2 |
children | 7739b61897df |
line wrap: on
line diff
--- a/tests/test-static-http Wed Feb 06 23:09:13 2008 +0100 +++ b/tests/test-static-http Fri Feb 08 11:50:37 2008 +0100 @@ -63,4 +63,19 @@ cat a hg paths | sed -e 's,:[0-9][0-9]*/,/,' +echo '% test with empty repo (issue965)' +cd .. +hg init remotempty + +http_proxy= hg clone static-http://localhost:$HGPORT/remotempty local3 | sed -e 's,:[0-9][0-9]*/,/,' + +cd local3 +hg verify +hg paths | sed -e 's,:[0-9][0-9]*/,/,' + +echo '% test with non-repo' +cd .. +mkdir notarepo +http_proxy= hg clone static-http://localhost:$HGPORT/notarepo local3 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' + kill $!