diff options
Diffstat (limited to 'tests/test-init.t')
-rw-r--r-- | tests/test-init.t | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/tests/test-init.t b/tests/test-init.t index aa4610b..1980769 100644 --- a/tests/test-init.t +++ b/tests/test-init.t @@ -19,8 +19,8 @@ creating 'local' store created 00changelog.i created revlogv1 - fncache store + fncache dotencode $ echo this > local/foo $ hg ci --cwd local -A -m "init" @@ -48,8 +48,8 @@ creating repo with format.dotencode=false store created 00changelog.i created revlogv1 - fncache store + fncache test failure @@ -59,7 +59,7 @@ test failure init+push to remote2 - $ hg init -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote2 + $ hg init -e "python $TESTDIR/dummyssh" ssh://user@dummy/remote2 $ hg incoming -R remote2 local comparing with local changeset: 0:08b9e9f63b32 @@ -69,7 +69,7 @@ init+push to remote2 summary: init - $ hg push -R local -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote2 + $ hg push -R local -e "python $TESTDIR/dummyssh" ssh://user@dummy/remote2 pushing to ssh://user@dummy/remote2 searching for changes remote: adding changesets @@ -79,7 +79,7 @@ init+push to remote2 clone to remote1 - $ hg clone -e "python \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote1 + $ hg clone -e "python $TESTDIR/dummyssh" local ssh://user@dummy/remote1 searching for changes remote: adding changesets remote: adding manifests @@ -88,14 +88,14 @@ clone to remote1 init to existing repo - $ hg init -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote1 + $ hg init -e "python $TESTDIR/dummyssh" ssh://user@dummy/remote1 abort: repository remote1 already exists! abort: could not create remote repo! [255] clone to existing repo - $ hg clone -e "python \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote1 + $ hg clone -e "python $TESTDIR/dummyssh" local ssh://user@dummy/remote1 abort: repository remote1 already exists! abort: could not create remote repo! [255] @@ -122,7 +122,7 @@ comparing repositories 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" @@ -135,13 +135,8 @@ check names for repositories (clashes with URL schemes, special chars) hg init "old-http"... ok hg init "ssh"... ok hg init "static-http"... ok + hg init " "... ok hg init "with space"... ok -#if eol-in-paths -/* " " is not a valid name for a directory on Windows */ - $ hg init " " - $ test -d " " - $ test -d " /.hg" -#endif creating 'local/sub/repo' @@ -150,8 +145,8 @@ creating 'local/sub/repo' store created 00changelog.i created revlogv1 - fncache store + fncache dotencode prepare test of init of url configured from paths @@ -167,8 +162,8 @@ init should (for consistency with clone) expand the url store created 00changelog.i created revlogv1 - fncache store + fncache dotencode verify that clone also expand urls @@ -180,8 +175,8 @@ verify that clone also expand urls store created 00changelog.i created revlogv1 - fncache store + fncache dotencode clone bookmarks @@ -189,7 +184,7 @@ clone bookmarks $ hg -R local bookmark test $ hg -R local bookmarks * test 0:08b9e9f63b32 - $ hg clone -e "python \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote-bookmarks + $ hg clone -e "python $TESTDIR/dummyssh" local ssh://user@dummy/remote-bookmarks searching for changes remote: adding changesets remote: adding manifests |