Mercurial > hg
annotate tests/test-ssh-clone-r.t @ 38483:3efadf2317c7
windows: add a method to convert Unix style command lines to Windows style
This started as a copy/paste of `os.path.expandvars()`, but limited to a given
dictionary of variables, converting `foo = foo + bar` to `foo += bar`, and
adding 'b' string prefixes. Then code was added to make sure that a value being
substituted in wouldn't itself be expanded by cmd.exe. But that left
inconsistent results between `$var1` and `%var1%` when its value was '%foo%'-
since neither were touched, `$var1` wouldn't expand but `%var1%` would. So
instead, this just converts the Unix style to Windows style (if the variable
exists, because Windows will leave `%missing%` as-is), and lets cmd.exe do its
thing.
I then dropped the %% -> % conversion (because Windows doesn't do this), and
added the ability to escape the '$' with '\'. The escape character is dropped,
for consistency with shell handling.
After everything seemed stable and working, running the whole test suite flagged
a problem near the end of test-bookmarks.t:1069. The problem is cmd.exe won't
pass empty variables to its child, so defined but empty variables are now
skipped. I can't think of anything better, and it seems like a pre-existing
violation of the documentation, which calls out that HG_OLDNODE is empty on
bookmark creation.
Future additions could potentially be replacing strong quotes with double quotes
(cmd.exe doesn't know what to do with the former), escaping a double quote, and
some tilde expansion via os.path.expanduser(). I've got some doubts about
replacing the strong quotes in case sh.exe is run, but it seems like the right
thing to do the vast majority of the time. The original form of this was
discussed about a year ago[1].
[1] https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-July/100735.html
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 24 Jun 2018 01:13:09 -0400 |
parents | 1ee1a42bfdae |
children | 89630d0b3e23 |
rev | line source |
---|---|
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
1 This test tries to exercise the ssh functionality with a dummy script |
3449
c8686e3f0291
Testing the new changegroupsubset remote function in the ssh
Eric Hopper <hopper@omnifarious.org>
parents:
diff
changeset
|
2 |
36217
1ee1a42bfdae
tests: test using both versions of SSH protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34661
diff
changeset
|
3 #testcases sshv1 sshv2 |
1ee1a42bfdae
tests: test using both versions of SSH protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34661
diff
changeset
|
4 |
1ee1a42bfdae
tests: test using both versions of SSH protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34661
diff
changeset
|
5 #if sshv2 |
1ee1a42bfdae
tests: test using both versions of SSH protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34661
diff
changeset
|
6 $ cat >> $HGRCPATH << EOF |
1ee1a42bfdae
tests: test using both versions of SSH protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34661
diff
changeset
|
7 > [experimental] |
1ee1a42bfdae
tests: test using both versions of SSH protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34661
diff
changeset
|
8 > sshpeer.advertise-v2 = true |
1ee1a42bfdae
tests: test using both versions of SSH protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34661
diff
changeset
|
9 > sshserver.support-v2 = true |
1ee1a42bfdae
tests: test using both versions of SSH protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34661
diff
changeset
|
10 > EOF |
1ee1a42bfdae
tests: test using both versions of SSH protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34661
diff
changeset
|
11 #endif |
1ee1a42bfdae
tests: test using both versions of SSH protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34661
diff
changeset
|
12 |
14186
8513bd2e7259
tests: share dummyssh
Mads Kiilerich <mads@kiilerich.com>
parents:
14117
diff
changeset
|
13 creating 'remote' repo |
4299
6b1e1b9da853
test-ssh-clone-r: avoid a shell script
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
3853
diff
changeset
|
14 |
14117
07708f4171f1
tests: create a bundle to bootstrap tests using a remote repository
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
13742
diff
changeset
|
15 $ hg init remote |
07708f4171f1
tests: create a bundle to bootstrap tests using a remote repository
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
13742
diff
changeset
|
16 $ cd remote |
16350
4f795f5fbb0b
tests: make tests work if directory contains special characters
Thomas Arendsen Hein <thomas@intevation.de>
parents:
14186
diff
changeset
|
17 $ hg unbundle "$TESTDIR/bundles/remote.hg" |
14117
07708f4171f1
tests: create a bundle to bootstrap tests using a remote repository
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
13742
diff
changeset
|
18 adding changesets |
07708f4171f1
tests: create a bundle to bootstrap tests using a remote repository
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
13742
diff
changeset
|
19 adding manifests |
07708f4171f1
tests: create a bundle to bootstrap tests using a remote repository
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
13742
diff
changeset
|
20 adding file changes |
07708f4171f1
tests: create a bundle to bootstrap tests using a remote repository
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
13742
diff
changeset
|
21 added 9 changesets with 7 changes to 4 files (+1 heads) |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
22 new changesets bfaf4b5cbf01:916f1afdef90 |
14117
07708f4171f1
tests: create a bundle to bootstrap tests using a remote repository
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
13742
diff
changeset
|
23 (run 'hg heads' to see heads, 'hg merge' to merge) |
07708f4171f1
tests: create a bundle to bootstrap tests using a remote repository
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
13742
diff
changeset
|
24 $ hg up tip |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
25 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
26 $ cd .. |
3449
c8686e3f0291
Testing the new changegroupsubset remote function in the ssh
Eric Hopper <hopper@omnifarious.org>
parents:
diff
changeset
|
27 |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
28 clone remote via stream |
3449
c8686e3f0291
Testing the new changegroupsubset remote function in the ssh
Eric Hopper <hopper@omnifarious.org>
parents:
diff
changeset
|
29 |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
30 $ for i in 0 1 2 3 4 5 6 7 8; do |
34393
fffd3369aa83
commands: rename clone --uncompressed to --stream and document
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33335
diff
changeset
|
31 > hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --stream -r "$i" ssh://user@dummy/remote test-"$i" |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
32 > if cd test-"$i"; then |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
33 > hg verify |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
34 > cd .. |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
35 > fi |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
36 > done |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
37 adding changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
38 adding manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
39 adding file changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
40 added 1 changesets with 1 changes to 1 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
41 new changesets bfaf4b5cbf01 |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
42 updating to branch default |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
43 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
44 checking changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
45 checking manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
46 crosschecking files in changesets and manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
47 checking files |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
48 1 files, 1 changesets, 1 total revisions |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
49 adding changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
50 adding manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
51 adding file changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
52 added 2 changesets with 2 changes to 1 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
53 new changesets bfaf4b5cbf01:21f32785131f |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
54 updating to branch default |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
55 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
56 checking changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
57 checking manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
58 crosschecking files in changesets and manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
59 checking files |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
60 1 files, 2 changesets, 2 total revisions |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
61 adding changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
62 adding manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
63 adding file changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
64 added 3 changesets with 3 changes to 1 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
65 new changesets bfaf4b5cbf01:4ce51a113780 |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
66 updating to branch default |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
67 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
68 checking changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
69 checking manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
70 crosschecking files in changesets and manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
71 checking files |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
72 1 files, 3 changesets, 3 total revisions |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
73 adding changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
74 adding manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
75 adding file changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
76 added 4 changesets with 4 changes to 1 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
77 new changesets bfaf4b5cbf01:93ee6ab32777 |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
78 updating to branch default |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
79 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
80 checking changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
81 checking manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
82 crosschecking files in changesets and manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
83 checking files |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
84 1 files, 4 changesets, 4 total revisions |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
85 adding changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
86 adding manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
87 adding file changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
88 added 2 changesets with 2 changes to 1 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
89 new changesets bfaf4b5cbf01:c70afb1ee985 |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
90 updating to branch default |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
91 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
92 checking changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
93 checking manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
94 crosschecking files in changesets and manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
95 checking files |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
96 1 files, 2 changesets, 2 total revisions |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
97 adding changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
98 adding manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
99 adding file changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
100 added 3 changesets with 3 changes to 1 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
101 new changesets bfaf4b5cbf01:f03ae5a9b979 |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
102 updating to branch default |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
103 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
104 checking changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
105 checking manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
106 crosschecking files in changesets and manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
107 checking files |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
108 1 files, 3 changesets, 3 total revisions |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
109 adding changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
110 adding manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
111 adding file changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
112 added 4 changesets with 5 changes to 2 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
113 new changesets bfaf4b5cbf01:095cb14b1b4d |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
114 updating to branch default |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
115 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
116 checking changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
117 checking manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
118 crosschecking files in changesets and manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
119 checking files |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
120 2 files, 4 changesets, 5 total revisions |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
121 adding changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
122 adding manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
123 adding file changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
124 added 5 changesets with 6 changes to 3 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
125 new changesets bfaf4b5cbf01:faa2e4234c7a |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
126 updating to branch default |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
127 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
128 checking changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
129 checking manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
130 crosschecking files in changesets and manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
131 checking files |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
132 3 files, 5 changesets, 6 total revisions |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
133 adding changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
134 adding manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
135 adding file changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
136 added 5 changesets with 5 changes to 2 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
137 new changesets bfaf4b5cbf01:916f1afdef90 |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
138 updating to branch default |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
139 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
140 checking changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
141 checking manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
142 crosschecking files in changesets and manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
143 checking files |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
144 2 files, 5 changesets, 5 total revisions |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
145 $ cd test-8 |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
146 $ hg pull ../test-7 |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
147 pulling from ../test-7 |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
148 searching for changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
149 adding changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
150 adding manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
151 adding file changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
152 added 4 changesets with 2 changes to 3 files (+1 heads) |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
153 new changesets c70afb1ee985:faa2e4234c7a |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
154 (run 'hg heads' to see heads, 'hg merge' to merge) |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
155 $ hg verify |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
156 checking changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
157 checking manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
158 crosschecking files in changesets and manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
159 checking files |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
160 4 files, 9 changesets, 7 total revisions |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
161 $ cd .. |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
162 $ cd test-1 |
33335
72f051f9a7d8
tests: quote $PYTHON for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
33286
diff
changeset
|
163 $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" -r 4 ssh://user@dummy/remote |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
164 pulling from ssh://user@dummy/remote |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
165 searching for changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
166 adding changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
167 adding manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
168 adding file changes |
13742
7abab875e647
discovery: avoid discovery when local graph is a subset of remote
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
12847
diff
changeset
|
169 added 1 changesets with 0 changes to 0 files (+1 heads) |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
170 new changesets c70afb1ee985 |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
171 (run 'hg heads' to see heads, 'hg merge' to merge) |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
172 $ hg verify |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
173 checking changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
174 checking manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
175 crosschecking files in changesets and manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
176 checking files |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
177 1 files, 3 changesets, 2 total revisions |
33335
72f051f9a7d8
tests: quote $PYTHON for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
33286
diff
changeset
|
178 $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
179 pulling from ssh://user@dummy/remote |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
180 searching for changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
181 adding changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
182 adding manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
183 adding file changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
184 added 6 changesets with 5 changes to 4 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
185 new changesets 4ce51a113780:916f1afdef90 |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
186 (run 'hg update' to get a working copy) |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
187 $ cd .. |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
188 $ cd test-2 |
33335
72f051f9a7d8
tests: quote $PYTHON for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
33286
diff
changeset
|
189 $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" -r 5 ssh://user@dummy/remote |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
190 pulling from ssh://user@dummy/remote |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
191 searching for changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
192 adding changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
193 adding manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
194 adding file changes |
13742
7abab875e647
discovery: avoid discovery when local graph is a subset of remote
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
12847
diff
changeset
|
195 added 2 changesets with 0 changes to 0 files (+1 heads) |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
196 new changesets c70afb1ee985:f03ae5a9b979 |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
197 (run 'hg heads' to see heads, 'hg merge' to merge) |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
198 $ hg verify |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
199 checking changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
200 checking manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
201 crosschecking files in changesets and manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
202 checking files |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
203 1 files, 5 changesets, 3 total revisions |
33335
72f051f9a7d8
tests: quote $PYTHON for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
33286
diff
changeset
|
204 $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
205 pulling from ssh://user@dummy/remote |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
206 searching for changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
207 adding changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
208 adding manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
209 adding file changes |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
210 added 4 changesets with 4 changes to 4 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34393
diff
changeset
|
211 new changesets 93ee6ab32777:916f1afdef90 |
12490
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
212 (run 'hg update' to get a working copy) |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
213 $ hg verify |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
214 checking changesets |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
215 checking manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
216 crosschecking files in changesets and manifests |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
217 checking files |
8ae02203065e
tests: unify test-ssh-clone-r
Matt Mackall <mpm@selenic.com>
parents:
4299
diff
changeset
|
218 4 files, 9 changesets, 7 total revisions |
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
16541
diff
changeset
|
219 |
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
16541
diff
changeset
|
220 $ cd .. |