Mercurial > hg
comparison tests/test-init.t @ 25476:46727fea7a00
tests: simplify calls to dummyssh
dummyssh is marked executable and is in the path, no need for python,
TESTDIR, or quotes.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 08 Jun 2015 15:02:49 -0500 |
parents | e4e69cebeedd |
children | c63bf97cf7c7 |
comparison
equal
deleted
inserted
replaced
25475:c3ecbf694904 | 25476:46727fea7a00 |
---|---|
82 abort: repository local already exists! | 82 abort: repository local already exists! |
83 [255] | 83 [255] |
84 | 84 |
85 init+push to remote2 | 85 init+push to remote2 |
86 | 86 |
87 $ hg init -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote2 | 87 $ hg init -e dummyssh ssh://user@dummy/remote2 |
88 $ hg incoming -R remote2 local | 88 $ hg incoming -R remote2 local |
89 comparing with local | 89 comparing with local |
90 changeset: 0:08b9e9f63b32 | 90 changeset: 0:08b9e9f63b32 |
91 tag: tip | 91 tag: tip |
92 user: test | 92 user: test |
93 date: Thu Jan 01 00:00:00 1970 +0000 | 93 date: Thu Jan 01 00:00:00 1970 +0000 |
94 summary: init | 94 summary: init |
95 | 95 |
96 | 96 |
97 $ hg push -R local -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote2 | 97 $ hg push -R local -e dummyssh ssh://user@dummy/remote2 |
98 pushing to ssh://user@dummy/remote2 | 98 pushing to ssh://user@dummy/remote2 |
99 searching for changes | 99 searching for changes |
100 remote: adding changesets | 100 remote: adding changesets |
101 remote: adding manifests | 101 remote: adding manifests |
102 remote: adding file changes | 102 remote: adding file changes |
103 remote: added 1 changesets with 1 changes to 1 files | 103 remote: added 1 changesets with 1 changes to 1 files |
104 | 104 |
105 clone to remote1 | 105 clone to remote1 |
106 | 106 |
107 $ hg clone -e "python \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote1 | 107 $ hg clone -e dummyssh local ssh://user@dummy/remote1 |
108 searching for changes | 108 searching for changes |
109 remote: adding changesets | 109 remote: adding changesets |
110 remote: adding manifests | 110 remote: adding manifests |
111 remote: adding file changes | 111 remote: adding file changes |
112 remote: added 1 changesets with 1 changes to 1 files | 112 remote: added 1 changesets with 1 changes to 1 files |
113 | 113 |
114 The largefiles extension doesn't crash | 114 The largefiles extension doesn't crash |
115 $ hg clone -e "python \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remotelf --config extensions.largefiles= | 115 $ hg clone -e dummyssh local ssh://user@dummy/remotelf --config extensions.largefiles= |
116 searching for changes | 116 searching for changes |
117 remote: adding changesets | 117 remote: adding changesets |
118 remote: adding manifests | 118 remote: adding manifests |
119 remote: adding file changes | 119 remote: adding file changes |
120 remote: added 1 changesets with 1 changes to 1 files | 120 remote: added 1 changesets with 1 changes to 1 files |
121 | 121 |
122 init to existing repo | 122 init to existing repo |
123 | 123 |
124 $ hg init -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote1 | 124 $ hg init -e dummyssh ssh://user@dummy/remote1 |
125 abort: repository remote1 already exists! | 125 abort: repository remote1 already exists! |
126 abort: could not create remote repo! | 126 abort: could not create remote repo! |
127 [255] | 127 [255] |
128 | 128 |
129 clone to existing repo | 129 clone to existing repo |
130 | 130 |
131 $ hg clone -e "python \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote1 | 131 $ hg clone -e dummyssh local ssh://user@dummy/remote1 |
132 abort: repository remote1 already exists! | 132 abort: repository remote1 already exists! |
133 abort: could not create remote repo! | 133 abort: could not create remote repo! |
134 [255] | 134 [255] |
135 | 135 |
136 output of dummyssh | 136 output of dummyssh |
222 clone bookmarks | 222 clone bookmarks |
223 | 223 |
224 $ hg -R local bookmark test | 224 $ hg -R local bookmark test |
225 $ hg -R local bookmarks | 225 $ hg -R local bookmarks |
226 * test 0:08b9e9f63b32 | 226 * test 0:08b9e9f63b32 |
227 $ hg clone -e "python \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote-bookmarks | 227 $ hg clone -e dummyssh local ssh://user@dummy/remote-bookmarks |
228 searching for changes | 228 searching for changes |
229 remote: adding changesets | 229 remote: adding changesets |
230 remote: adding manifests | 230 remote: adding manifests |
231 remote: adding file changes | 231 remote: adding file changes |
232 remote: added 1 changesets with 1 changes to 1 files | 232 remote: added 1 changesets with 1 changes to 1 files |