--- 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,"
--- 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