equal
deleted
inserted
replaced
1 $ "$TESTDIR/hghave" no-windows || exit 80 |
|
2 |
|
3 This test tries to exercise the ssh functionality with a dummy script |
1 This test tries to exercise the ssh functionality with a dummy script |
4 |
2 |
5 $ checknewrepo() |
3 $ checknewrepo() |
6 > { |
4 > { |
7 > name=$1 |
5 > name=$1 |
122 $ hg tip -q -R remote2 |
120 $ hg tip -q -R remote2 |
123 0:08b9e9f63b32 |
121 0:08b9e9f63b32 |
124 |
122 |
125 check names for repositories (clashes with URL schemes, special chars) |
123 check names for repositories (clashes with URL schemes, special chars) |
126 |
124 |
127 $ for i in bundle file hg http https old-http ssh static-http " " "with space"; do |
125 $ for i in bundle file hg http https old-http ssh static-http "with space"; do |
128 > printf "hg init \"$i\"... " |
126 > printf "hg init \"$i\"... " |
129 > hg init "$i" |
127 > hg init "$i" |
130 > test -d "$i" -a -d "$i/.hg" && echo "ok" || echo "failed" |
128 > test -d "$i" -a -d "$i/.hg" && echo "ok" || echo "failed" |
131 > done |
129 > done |
132 hg init "bundle"... ok |
130 hg init "bundle"... ok |
135 hg init "http"... ok |
133 hg init "http"... ok |
136 hg init "https"... ok |
134 hg init "https"... ok |
137 hg init "old-http"... ok |
135 hg init "old-http"... ok |
138 hg init "ssh"... ok |
136 hg init "ssh"... ok |
139 hg init "static-http"... ok |
137 hg init "static-http"... ok |
140 hg init " "... ok |
|
141 hg init "with space"... ok |
138 hg init "with space"... ok |
|
139 #if no-windows |
|
140 /* " " is not a valid name for a directory on Windows */ |
|
141 $ hg init " " |
|
142 $ test -d " " |
|
143 $ test -d " /.hg" |
|
144 #endif |
142 |
145 |
143 creating 'local/sub/repo' |
146 creating 'local/sub/repo' |
144 |
147 |
145 $ hg init local/sub/repo |
148 $ hg init local/sub/repo |
146 $ checknewrepo local/sub/repo |
149 $ checknewrepo local/sub/repo |