Skip to content
Snippets Groups Projects
Commit ccebe526d321 authored by Adrian Buehlmann's avatar Adrian Buehlmann
Browse files

test-init: enable for Windows

On Windows, we can't create a directory with the name " ", as that is
not a valid name for a directory.
parent 2030dec7c8fa
No related branches found
No related tags found
No related merge requests found
$ "$TESTDIR/hghave" no-windows || exit 80
This test tries to exercise the ssh functionality with a dummy script
$ checknewrepo()
......@@ -124,7 +122,7 @@
check names for repositories (clashes with URL schemes, special chars)
$ for i in bundle file hg http https old-http ssh static-http " " "with space"; do
$ for i in bundle file hg http https old-http ssh static-http "with space"; do
> printf "hg init \"$i\"... "
> hg init "$i"
> test -d "$i" -a -d "$i/.hg" && echo "ok" || echo "failed"
......@@ -137,5 +135,4 @@
hg init "old-http"... ok
hg init "ssh"... ok
hg init "static-http"... ok
hg init " "... ok
hg init "with space"... ok
......@@ -141,4 +138,10 @@
hg init "with space"... ok
#if no-windows
/* " " is not a valid name for a directory on Windows */
$ hg init " "
$ test -d " "
$ test -d " /.hg"
#endif
creating 'local/sub/repo'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment