comparison tests/test-init.t @ 16350:4f795f5fbb0b stable

tests: make tests work if directory contains special characters With this quoting tests will work e.g. in "/tmp/foo bar/mercurial/".
author Thomas Arendsen Hein <thomas@intevation.de>
date Tue, 03 Apr 2012 19:06:35 +0200
parents 86fc364ca5f8
children bb3334806ace
comparison
equal deleted inserted replaced
16349:425f1fbcfb94 16350:4f795f5fbb0b
59 abort: repository local already exists! 59 abort: repository local already exists!
60 [255] 60 [255]
61 61
62 init+push to remote2 62 init+push to remote2
63 63
64 $ hg init -e "python $TESTDIR/dummyssh" ssh://user@dummy/remote2 64 $ hg init -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/remote2
65 $ hg incoming -R remote2 local 65 $ hg incoming -R remote2 local
66 comparing with local 66 comparing with local
67 changeset: 0:08b9e9f63b32 67 changeset: 0:08b9e9f63b32
68 tag: tip 68 tag: tip
69 user: test 69 user: test
70 date: Thu Jan 01 00:00:00 1970 +0000 70 date: Thu Jan 01 00:00:00 1970 +0000
71 summary: init 71 summary: init
72 72
73 73
74 $ hg push -R local -e "python $TESTDIR/dummyssh" ssh://user@dummy/remote2 74 $ hg push -R local -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/remote2
75 pushing to ssh://user@dummy/remote2 75 pushing to ssh://user@dummy/remote2
76 searching for changes 76 searching for changes
77 remote: adding changesets 77 remote: adding changesets
78 remote: adding manifests 78 remote: adding manifests
79 remote: adding file changes 79 remote: adding file changes
80 remote: added 1 changesets with 1 changes to 1 files 80 remote: added 1 changesets with 1 changes to 1 files
81 81
82 clone to remote1 82 clone to remote1
83 83
84 $ hg clone -e "python $TESTDIR/dummyssh" local ssh://user@dummy/remote1 84 $ hg clone -e 'python "$TESTDIR/dummyssh"' local ssh://user@dummy/remote1
85 searching for changes 85 searching for changes
86 remote: adding changesets 86 remote: adding changesets
87 remote: adding manifests 87 remote: adding manifests
88 remote: adding file changes 88 remote: adding file changes
89 remote: added 1 changesets with 1 changes to 1 files 89 remote: added 1 changesets with 1 changes to 1 files
90 90
91 init to existing repo 91 init to existing repo
92 92
93 $ hg init -e "python $TESTDIR/dummyssh" ssh://user@dummy/remote1 93 $ hg init -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/remote1
94 abort: repository remote1 already exists! 94 abort: repository remote1 already exists!
95 abort: could not create remote repo! 95 abort: could not create remote repo!
96 [255] 96 [255]
97 97
98 clone to existing repo 98 clone to existing repo
99 99
100 $ hg clone -e "python $TESTDIR/dummyssh" local ssh://user@dummy/remote1 100 $ hg clone -e 'python "$TESTDIR/dummyssh"' local ssh://user@dummy/remote1
101 abort: repository remote1 already exists! 101 abort: repository remote1 already exists!
102 abort: could not create remote repo! 102 abort: could not create remote repo!
103 [255] 103 [255]
104 104
105 output of dummyssh 105 output of dummyssh
184 clone bookmarks 184 clone bookmarks
185 185
186 $ hg -R local bookmark test 186 $ hg -R local bookmark test
187 $ hg -R local bookmarks 187 $ hg -R local bookmarks
188 * test 0:08b9e9f63b32 188 * test 0:08b9e9f63b32
189 $ hg clone -e "python $TESTDIR/dummyssh" local ssh://user@dummy/remote-bookmarks 189 $ hg clone -e 'python "$TESTDIR/dummyssh"' local ssh://user@dummy/remote-bookmarks
190 searching for changes 190 searching for changes
191 remote: adding changesets 191 remote: adding changesets
192 remote: adding manifests 192 remote: adding manifests
193 remote: adding file changes 193 remote: adding file changes
194 remote: added 1 changesets with 1 changes to 1 files 194 remote: added 1 changesets with 1 changes to 1 files