# HG changeset patch # User Brodie Rao # Date 1285361457 18000 # Node ID 0eaf7d32a5d8e3084b352a1e619fc44260b58e0e # Parent 78a97859b90da7b7712636ad7e246dd03094808b test-ssh: test absolute paths in SSH URLs diff -r 78a97859b90d -r 0eaf7d32a5d8 tests/test-ssh --- a/tests/test-ssh Fri Sep 24 15:36:53 2010 -0500 +++ b/tests/test-ssh Fri Sep 24 15:50:57 2010 -0500 @@ -48,6 +48,9 @@ echo "# repo not found error" hg clone -e "python ./dummyssh" ssh://user@dummy/nonexistent local +echo "# non-existent absolute path" +hg clone -e "python ./dummyssh" ssh://user@dummy//$HGTMP/nonexistent local + echo "# clone remote via stream" hg clone -e "python ./dummyssh" --uncompressed ssh://user@dummy/remote local-stream 2>&1 | \ sed -e 's/[0-9][0-9.]*/XXX/g' -e 's/[KM]\(B\/sec\)/X\1/' @@ -108,4 +111,4 @@ hg -R ../remote heads cd .. -cat dummylog +cat dummylog | sed -e "s,$HGTMP,HGTMP," diff -r 78a97859b90d -r 0eaf7d32a5d8 tests/test-ssh.out --- a/tests/test-ssh.out Fri Sep 24 15:36:53 2010 -0500 +++ b/tests/test-ssh.out Fri Sep 24 15:50:57 2010 -0500 @@ -2,6 +2,9 @@ # repo not found error remote: abort: There is no Mercurial repository here (.hg not found)! abort: no suitable response from remote hg! +# non-existent absolute path +remote: abort: There is no Mercurial repository here (.hg not found)! +abort: no suitable response from remote hg! # clone remote via stream streaming all changes XXX files to transfer, XXX bytes of data @@ -96,6 +99,7 @@ summary: z Got arguments 1:user@dummy 2:hg -R nonexistent serve --stdio +Got arguments 1:user@dummy 2:hg -R /HGTMP/nonexistent serve --stdio Got arguments 1:user@dummy 2:hg -R remote serve --stdio Got arguments 1:user@dummy 2:hg -R remote serve --stdio Got arguments 1:user@dummy 2:hg -R remote serve --stdio