author | Patrick Mezard <pmezard@gmail.com> |
Sun, 01 May 2011 15:51:48 +0200 | |
changeset 14132 | 7d3bd0640262 |
parent 13755 | e45780ac8292 |
child 14164 | cb98fed52495 |
permissions | -rw-r--r-- |
1110 | 1 |
|
4291
35b2e02367a5
test-ssh: use printenv.py
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
3853
diff
changeset
|
2 |
|
12414 | 3 |
This test tries to exercise the ssh functionality with a dummy script |
1110 | 4 |
|
12414 | 5 |
$ cat <<EOF > dummyssh |
6 |
> import sys |
|
7 |
> import os |
|
12489 | 8 |
> |
12414 | 9 |
> os.chdir(os.path.dirname(sys.argv[0])) |
10 |
> if sys.argv[1] != "user@dummy": |
|
11 |
> sys.exit(-1) |
|
12489 | 12 |
> |
12414 | 13 |
> if not os.path.exists("dummyssh"): |
14 |
> sys.exit(-1) |
|
12489 | 15 |
> |
12414 | 16 |
> os.environ["SSH_CLIENT"] = "127.0.0.1 1 2" |
12489 | 17 |
> |
12414 | 18 |
> log = open("dummylog", "ab") |
19 |
> log.write("Got arguments") |
|
20 |
> for i, arg in enumerate(sys.argv[1:]): |
|
21 |
> log.write(" %d:%s" % (i+1, arg)) |
|
22 |
> log.write("\n") |
|
23 |
> log.close() |
|
24 |
> r = os.system(sys.argv[2]) |
|
25 |
> sys.exit(bool(r)) |
|
26 |
> EOF |
|
27 |
$ cat <<EOF > badhook |
|
28 |
> import sys |
|
29 |
> sys.stdout.write("KABOOM\n") |
|
30 |
> EOF |
|
1110 | 31 |
|
12489 | 32 |
creating 'remote |
4298
58517f6eb1ad
test-ssh: avoid a shell script
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4291
diff
changeset
|
33 |
|
12414 | 34 |
$ hg init remote |
35 |
$ cd remote |
|
36 |
$ echo this > foo |
|
37 |
$ echo this > fooO |
|
38 |
$ hg ci -A -m "init" foo fooO |
|
12969
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
39 |
$ echo <<EOF > .hg/hgrc |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
40 |
> [server] |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
41 |
> uncompressed = True |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
42 |
> |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
43 |
> [hooks] |
13405
682edefe7dbb
tests: use printenv.py where it is - don't copy it around
Mads Kiilerich <mads@kiilerich.com>
parents:
13368
diff
changeset
|
44 |
> changegroup = python "$TESTDIR"/printenv.py changegroup-in-remote 0 ../dummylog |
12969
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
45 |
> EOF |
12414 | 46 |
$ cd .. |
1110 | 47 |
|
12414 | 48 |
repo not found error |
49 |
||
50 |
$ hg clone -e "python ./dummyssh" ssh://user@dummy/nonexistent local |
|
51 |
remote: abort: There is no Mercurial repository here (.hg not found)! |
|
52 |
abort: no suitable response from remote hg! |
|
53 |
[255] |
|
54 |
||
55 |
non-existent absolute path |
|
1110 | 56 |
|
12642
bb35840e965c
tests: remove the last traces of $HGTMP
Mads Kiilerich <mads@kiilerich.com>
parents:
12640
diff
changeset
|
57 |
$ hg clone -e "python ./dummyssh" ssh://user@dummy//`pwd`/nonexistent local |
12414 | 58 |
remote: abort: There is no Mercurial repository here (.hg not found)! |
59 |
abort: no suitable response from remote hg! |
|
60 |
[255] |
|
61 |
||
62 |
clone remote via stream |
|
1110 | 63 |
|
12489 | 64 |
$ hg clone -e "python ./dummyssh" --uncompressed ssh://user@dummy/remote local-stream |
12414 | 65 |
streaming all changes |
12489 | 66 |
4 files to transfer, 392 bytes of data |
12773
98aaf58a1d7c
test-ssh: handle very slow ssh transfer rate
timeless <timeless@gmail.com>
parents:
12642
diff
changeset
|
67 |
transferred 392 bytes in * seconds (*/sec) (glob) |
12414 | 68 |
updating to branch default |
12489 | 69 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
12414 | 70 |
$ cd local-stream |
71 |
$ hg verify |
|
72 |
checking changesets |
|
73 |
checking manifests |
|
74 |
crosschecking files in changesets and manifests |
|
75 |
checking files |
|
76 |
2 files, 1 changesets, 2 total revisions |
|
77 |
$ cd .. |
|
78 |
||
79 |
clone remote via pull |
|
5978
7939c71f3132
sshrepo: be more careful while reading data
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4298
diff
changeset
|
80 |
|
12414 | 81 |
$ hg clone -e "python ./dummyssh" ssh://user@dummy/remote local |
82 |
requesting all changes |
|
83 |
adding changesets |
|
84 |
adding manifests |
|
85 |
adding file changes |
|
86 |
added 1 changesets with 2 changes to 2 files |
|
87 |
updating to branch default |
|
88 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
89 |
||
90 |
verify |
|
1110 | 91 |
|
12414 | 92 |
$ cd local |
93 |
$ hg verify |
|
94 |
checking changesets |
|
95 |
checking manifests |
|
96 |
crosschecking files in changesets and manifests |
|
97 |
checking files |
|
98 |
2 files, 1 changesets, 2 total revisions |
|
99 |
$ echo '[hooks]' >> .hg/hgrc |
|
13405
682edefe7dbb
tests: use printenv.py where it is - don't copy it around
Mads Kiilerich <mads@kiilerich.com>
parents:
13368
diff
changeset
|
100 |
$ echo 'changegroup = python "$TESTDIR"/printenv.py changegroup-in-local 0 ../dummylog' >> .hg/hgrc |
1110 | 101 |
|
12414 | 102 |
empty default pull |
3275
7ae37d99d47e
ssh: make the error message more clear, add a testcase
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
3095
diff
changeset
|
103 |
|
12414 | 104 |
$ hg paths |
105 |
default = ssh://user@dummy/remote |
|
106 |
$ hg pull -e "python ../dummyssh" |
|
107 |
pulling from ssh://user@dummy/remote |
|
108 |
searching for changes |
|
109 |
no changes found |
|
110 |
||
111 |
local change |
|
12409
0eaf7d32a5d8
test-ssh: test absolute paths in SSH URLs
Brodie Rao <brodie@bitheap.org>
parents:
12156
diff
changeset
|
112 |
|
12414 | 113 |
$ echo bleah > foo |
114 |
$ hg ci -m "add" |
|
115 |
||
116 |
updating rc |
|
117 |
||
118 |
$ echo "default-push = ssh://user@dummy/remote" >> .hg/hgrc |
|
119 |
$ echo "[ui]" >> .hg/hgrc |
|
120 |
$ echo "ssh = python ../dummyssh" >> .hg/hgrc |
|
121 |
||
122 |
find outgoing |
|
2612
ffb895f16925
add support for streaming clone.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
2439
diff
changeset
|
123 |
|
12414 | 124 |
$ hg out ssh://user@dummy/remote |
125 |
comparing with ssh://user@dummy/remote |
|
126 |
searching for changes |
|
127 |
changeset: 1:a28a9d1a809c |
|
128 |
tag: tip |
|
129 |
user: test |
|
130 |
date: Thu Jan 01 00:00:00 1970 +0000 |
|
131 |
summary: add |
|
132 |
||
1110 | 133 |
|
12414 | 134 |
find incoming on the remote side |
1110 | 135 |
|
12414 | 136 |
$ hg incoming -R ../remote -e "python ../dummyssh" ssh://user@dummy/local |
137 |
comparing with ssh://user@dummy/local |
|
138 |
searching for changes |
|
139 |
changeset: 1:a28a9d1a809c |
|
140 |
tag: tip |
|
141 |
user: test |
|
142 |
date: Thu Jan 01 00:00:00 1970 +0000 |
|
143 |
summary: add |
|
144 |
||
1110 | 145 |
|
12504
f7dd8bffe18c
test-ssh: test absolute path that exists
Brodie Rao <brodie@bitheap.org>
parents:
12489
diff
changeset
|
146 |
find incoming on the remote side (using absolute path) |
f7dd8bffe18c
test-ssh: test absolute path that exists
Brodie Rao <brodie@bitheap.org>
parents:
12489
diff
changeset
|
147 |
|
f7dd8bffe18c
test-ssh: test absolute path that exists
Brodie Rao <brodie@bitheap.org>
parents:
12489
diff
changeset
|
148 |
$ hg incoming -R ../remote -e "python ../dummyssh" "ssh://user@dummy/`pwd`" |
12640
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12587
diff
changeset
|
149 |
comparing with ssh://user@dummy/$TESTTMP/local |
12504
f7dd8bffe18c
test-ssh: test absolute path that exists
Brodie Rao <brodie@bitheap.org>
parents:
12489
diff
changeset
|
150 |
searching for changes |
f7dd8bffe18c
test-ssh: test absolute path that exists
Brodie Rao <brodie@bitheap.org>
parents:
12489
diff
changeset
|
151 |
changeset: 1:a28a9d1a809c |
f7dd8bffe18c
test-ssh: test absolute path that exists
Brodie Rao <brodie@bitheap.org>
parents:
12489
diff
changeset
|
152 |
tag: tip |
f7dd8bffe18c
test-ssh: test absolute path that exists
Brodie Rao <brodie@bitheap.org>
parents:
12489
diff
changeset
|
153 |
user: test |
f7dd8bffe18c
test-ssh: test absolute path that exists
Brodie Rao <brodie@bitheap.org>
parents:
12489
diff
changeset
|
154 |
date: Thu Jan 01 00:00:00 1970 +0000 |
f7dd8bffe18c
test-ssh: test absolute path that exists
Brodie Rao <brodie@bitheap.org>
parents:
12489
diff
changeset
|
155 |
summary: add |
f7dd8bffe18c
test-ssh: test absolute path that exists
Brodie Rao <brodie@bitheap.org>
parents:
12489
diff
changeset
|
156 |
|
f7dd8bffe18c
test-ssh: test absolute path that exists
Brodie Rao <brodie@bitheap.org>
parents:
12489
diff
changeset
|
157 |
|
12414 | 158 |
push |
1110 | 159 |
|
12414 | 160 |
$ hg push |
161 |
pushing to ssh://user@dummy/remote |
|
162 |
searching for changes |
|
163 |
remote: adding changesets |
|
164 |
remote: adding manifests |
|
165 |
remote: adding file changes |
|
166 |
remote: added 1 changesets with 1 changes to 1 files |
|
167 |
$ cd ../remote |
|
168 |
||
169 |
check remote tip |
|
1110 | 170 |
|
12414 | 171 |
$ hg tip |
172 |
changeset: 1:a28a9d1a809c |
|
173 |
tag: tip |
|
174 |
user: test |
|
175 |
date: Thu Jan 01 00:00:00 1970 +0000 |
|
176 |
summary: add |
|
177 |
||
178 |
$ hg verify |
|
179 |
checking changesets |
|
180 |
checking manifests |
|
181 |
crosschecking files in changesets and manifests |
|
182 |
checking files |
|
183 |
2 files, 2 changesets, 3 total revisions |
|
184 |
$ hg cat -r tip foo |
|
185 |
bleah |
|
186 |
$ echo z > z |
|
187 |
$ hg ci -A -m z z |
|
188 |
created new head |
|
1982
70ba0c86da8b
Added test for incoming via ssh.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1933
diff
changeset
|
189 |
|
12969
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
190 |
test pushkeys and bookmarks |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
191 |
|
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
192 |
$ cd ../local |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
193 |
$ hg debugpushkey --config ui.ssh="python ../dummyssh" ssh://user@dummy/remote namespaces |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
194 |
bookmarks |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
195 |
namespaces |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
196 |
$ hg book foo -r 0 |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
197 |
$ hg out -B |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
198 |
comparing with ssh://user@dummy/remote |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
199 |
searching for changed bookmarks |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
200 |
foo 1160648e36ce |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
201 |
$ hg push -B foo |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
202 |
pushing to ssh://user@dummy/remote |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
203 |
searching for changes |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
204 |
no changes found |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
205 |
exporting bookmark foo |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
206 |
$ hg debugpushkey --config ui.ssh="python ../dummyssh" ssh://user@dummy/remote bookmarks |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
207 |
foo 1160648e36cec0054048a7edc4110c6f84fde594 |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
208 |
$ hg book -f foo |
13050 | 209 |
$ hg push --traceback |
12969
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
210 |
pushing to ssh://user@dummy/remote |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
211 |
searching for changes |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
212 |
no changes found |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
213 |
updating bookmark foo |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
214 |
$ hg book -d foo |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
215 |
$ hg in -B |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
216 |
comparing with ssh://user@dummy/remote |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
217 |
searching for changed bookmarks |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
218 |
foo a28a9d1a809c |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
219 |
$ hg book -f -r 0 foo |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
220 |
$ hg pull -B foo |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
221 |
pulling from ssh://user@dummy/remote |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
222 |
searching for changes |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
223 |
no changes found |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
224 |
updating bookmark foo |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
225 |
importing bookmark foo |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
226 |
$ hg book -d foo |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
227 |
$ hg push -B foo |
13368
d4ab9486e514
bookmarks: move push/pull command features to core
Matt Mackall <mpm@selenic.com>
parents:
13050
diff
changeset
|
228 |
pushing to ssh://user@dummy/remote |
d4ab9486e514
bookmarks: move push/pull command features to core
Matt Mackall <mpm@selenic.com>
parents:
13050
diff
changeset
|
229 |
searching for changes |
d4ab9486e514
bookmarks: move push/pull command features to core
Matt Mackall <mpm@selenic.com>
parents:
13050
diff
changeset
|
230 |
no changes found |
12969
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
231 |
deleting remote bookmark foo |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
232 |
|
12414 | 233 |
a bad, evil hook that prints to stdout |
1110 | 234 |
|
12969
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
235 |
$ echo '[hooks]' >> ../remote/.hg/hgrc |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
236 |
$ echo 'changegroup.stdout = python ../badhook' >> ../remote/.hg/hgrc |
12414 | 237 |
$ echo r > r |
238 |
$ hg ci -A -m z r |
|
239 |
||
240 |
push should succeed even though it has an unexpected response |
|
1110 | 241 |
|
12414 | 242 |
$ hg push |
243 |
pushing to ssh://user@dummy/remote |
|
244 |
searching for changes |
|
245 |
note: unsynced remote changes! |
|
246 |
remote: adding changesets |
|
247 |
remote: adding manifests |
|
248 |
remote: adding file changes |
|
249 |
remote: added 1 changesets with 1 changes to 1 files |
|
250 |
remote: KABOOM |
|
251 |
$ hg -R ../remote heads |
|
252 |
changeset: 3:1383141674ec |
|
253 |
tag: tip |
|
254 |
parent: 1:a28a9d1a809c |
|
255 |
user: test |
|
256 |
date: Thu Jan 01 00:00:00 1970 +0000 |
|
257 |
summary: z |
|
258 |
||
259 |
changeset: 2:6c0482d977a3 |
|
260 |
parent: 0:1160648e36ce |
|
261 |
user: test |
|
262 |
date: Thu Jan 01 00:00:00 1970 +0000 |
|
263 |
summary: z |
|
264 |
||
13464
da0ddd62b9d8
sshrepo: catch passwords in ssh urls
Adrian Buehlmann <adrian@cadifra.com>
parents:
13405
diff
changeset
|
265 |
|
13604
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
266 |
clone bookmarks |
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
267 |
|
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
268 |
$ hg -R ../remote bookmark test |
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
269 |
$ hg -R ../remote bookmarks |
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
270 |
* test 2:6c0482d977a3 |
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
271 |
$ hg clone -e "python ../dummyssh" ssh://user@dummy/remote local-bookmarks |
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
272 |
requesting all changes |
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
273 |
adding changesets |
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
274 |
adding manifests |
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
275 |
adding file changes |
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
276 |
added 4 changesets with 5 changes to 4 files (+1 heads) |
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
277 |
updating to branch default |
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
278 |
3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
279 |
$ hg -R local-bookmarks bookmarks |
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
280 |
test 2:6c0482d977a3 |
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
281 |
|
13464
da0ddd62b9d8
sshrepo: catch passwords in ssh urls
Adrian Buehlmann <adrian@cadifra.com>
parents:
13405
diff
changeset
|
282 |
passwords in ssh urls are not supported |
13755 | 283 |
(we use a glob here because different Python versions give different |
284 |
results here) |
|
13464
da0ddd62b9d8
sshrepo: catch passwords in ssh urls
Adrian Buehlmann <adrian@cadifra.com>
parents:
13405
diff
changeset
|
285 |
|
da0ddd62b9d8
sshrepo: catch passwords in ssh urls
Adrian Buehlmann <adrian@cadifra.com>
parents:
13405
diff
changeset
|
286 |
$ hg push ssh://user:erroneouspwd@dummy/remote |
13755 | 287 |
pushing to ssh://user:*@dummy/remote (glob) |
13464
da0ddd62b9d8
sshrepo: catch passwords in ssh urls
Adrian Buehlmann <adrian@cadifra.com>
parents:
13405
diff
changeset
|
288 |
abort: password in URL not supported! |
da0ddd62b9d8
sshrepo: catch passwords in ssh urls
Adrian Buehlmann <adrian@cadifra.com>
parents:
13405
diff
changeset
|
289 |
[255] |
da0ddd62b9d8
sshrepo: catch passwords in ssh urls
Adrian Buehlmann <adrian@cadifra.com>
parents:
13405
diff
changeset
|
290 |
|
12414 | 291 |
$ cd .. |
292 |
$ cat dummylog |
|
293 |
Got arguments 1:user@dummy 2:hg -R nonexistent serve --stdio |
|
12640
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12587
diff
changeset
|
294 |
Got arguments 1:user@dummy 2:hg -R /$TESTTMP/nonexistent serve --stdio |
12414 | 295 |
Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
296 |
Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
|
297 |
Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
|
298 |
Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
|
299 |
Got arguments 1:user@dummy 2:hg -R local serve --stdio |
|
12640
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12587
diff
changeset
|
300 |
Got arguments 1:user@dummy 2:hg -R $TESTTMP/local serve --stdio |
12414 | 301 |
Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
12969
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
302 |
Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
303 |
Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
304 |
Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
305 |
Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
306 |
Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
12414 | 307 |
Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
12969
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
308 |
Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
309 |
Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
6bd9778ae749
pushkey: force HTTP POST on push and add tests (issue2489)
Matt Mackall <mpm@selenic.com>
parents:
12773
diff
changeset
|
310 |
Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
13604
3f6a4579f803
hg: add support for cloning bookmarks
David Soria Parra <dsp@php.net>
parents:
13469
diff
changeset
|
311 |
Got arguments 1:user@dummy 2:hg -R remote serve --stdio |