##// END OF EJS Templates
tests: conditionalize test output on Python 3.7...
Gregory Szorc -
r41489:d5357238 default
parent child Browse files
Show More
@@ -1,279 +1,285
1 #require no-reposimplestore
1 #require no-reposimplestore
2
2
3 $ hg clone http://localhost:$HGPORT/ copy
3 $ hg clone http://localhost:$HGPORT/ copy
4 abort: * (glob)
4 abort: * (glob)
5 [255]
5 [255]
6 $ test -d copy
6 $ test -d copy
7 [1]
7 [1]
8
8
9 This server doesn't do range requests so it's basically only good for
9 This server doesn't do range requests so it's basically only good for
10 one pull
10 one pull
11
11
12 $ "$PYTHON" "$TESTDIR/dumbhttp.py" -p $HGPORT --pid dumb.pid \
12 $ "$PYTHON" "$TESTDIR/dumbhttp.py" -p $HGPORT --pid dumb.pid \
13 > --logfile server.log
13 > --logfile server.log
14 $ cat dumb.pid >> $DAEMON_PIDS
14 $ cat dumb.pid >> $DAEMON_PIDS
15 $ hg init remote
15 $ hg init remote
16 $ cd remote
16 $ cd remote
17 $ echo foo > bar
17 $ echo foo > bar
18 $ echo c2 > '.dotfile with spaces'
18 $ echo c2 > '.dotfile with spaces'
19 $ hg add
19 $ hg add
20 adding .dotfile with spaces
20 adding .dotfile with spaces
21 adding bar
21 adding bar
22 $ hg commit -m"test"
22 $ hg commit -m"test"
23 $ hg tip
23 $ hg tip
24 changeset: 0:02770d679fb8
24 changeset: 0:02770d679fb8
25 tag: tip
25 tag: tip
26 user: test
26 user: test
27 date: Thu Jan 01 00:00:00 1970 +0000
27 date: Thu Jan 01 00:00:00 1970 +0000
28 summary: test
28 summary: test
29
29
30 $ cd ..
30 $ cd ..
31 $ hg clone static-http://localhost:$HGPORT/remote local
31 $ hg clone static-http://localhost:$HGPORT/remote local
32 requesting all changes
32 requesting all changes
33 adding changesets
33 adding changesets
34 adding manifests
34 adding manifests
35 adding file changes
35 adding file changes
36 added 1 changesets with 2 changes to 2 files
36 added 1 changesets with 2 changes to 2 files
37 new changesets 02770d679fb8
37 new changesets 02770d679fb8
38 updating to branch default
38 updating to branch default
39 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
39 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
40 $ cd local
40 $ cd local
41 $ hg verify
41 $ hg verify
42 checking changesets
42 checking changesets
43 checking manifests
43 checking manifests
44 crosschecking files in changesets and manifests
44 crosschecking files in changesets and manifests
45 checking files
45 checking files
46 checked 1 changesets with 2 changes to 2 files
46 checked 1 changesets with 2 changes to 2 files
47 $ cat bar
47 $ cat bar
48 foo
48 foo
49 $ cd ../remote
49 $ cd ../remote
50 $ echo baz > quux
50 $ echo baz > quux
51 $ hg commit -A -mtest2
51 $ hg commit -A -mtest2
52 adding quux
52 adding quux
53
53
54 check for HTTP opener failures when cachefile does not exist
54 check for HTTP opener failures when cachefile does not exist
55
55
56 $ rm .hg/cache/*
56 $ rm .hg/cache/*
57 $ cd ../local
57 $ cd ../local
58 $ cat >> .hg/hgrc <<EOF
58 $ cat >> .hg/hgrc <<EOF
59 > [hooks]
59 > [hooks]
60 > changegroup = sh -c "printenv.py changegroup"
60 > changegroup = sh -c "printenv.py changegroup"
61 > EOF
61 > EOF
62 $ hg pull
62 $ hg pull
63 pulling from static-http://localhost:$HGPORT/remote
63 pulling from static-http://localhost:$HGPORT/remote
64 searching for changes
64 searching for changes
65 adding changesets
65 adding changesets
66 adding manifests
66 adding manifests
67 adding file changes
67 adding file changes
68 added 1 changesets with 1 changes to 1 files
68 added 1 changesets with 1 changes to 1 files
69 new changesets 4ac2e3648604
69 new changesets 4ac2e3648604
70 changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=4ac2e3648604439c580c69b09ec9d93a88d93432 HG_NODE_LAST=4ac2e3648604439c580c69b09ec9d93a88d93432 HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=http://localhost:$HGPORT/remote
70 changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=4ac2e3648604439c580c69b09ec9d93a88d93432 HG_NODE_LAST=4ac2e3648604439c580c69b09ec9d93a88d93432 HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=http://localhost:$HGPORT/remote
71 (run 'hg update' to get a working copy)
71 (run 'hg update' to get a working copy)
72
72
73 trying to push
73 trying to push
74
74
75 $ hg update
75 $ hg update
76 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
76 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
77 $ echo more foo >> bar
77 $ echo more foo >> bar
78 $ hg commit -m"test"
78 $ hg commit -m"test"
79 $ hg push
79 $ hg push
80 pushing to static-http://localhost:$HGPORT/remote
80 pushing to static-http://localhost:$HGPORT/remote
81 abort: destination does not support push
81 abort: destination does not support push
82 [255]
82 [255]
83
83
84 trying clone -r
84 trying clone -r
85
85
86 $ cd ..
86 $ cd ..
87 $ hg clone -r doesnotexist static-http://localhost:$HGPORT/remote local0
87 $ hg clone -r doesnotexist static-http://localhost:$HGPORT/remote local0
88 abort: unknown revision 'doesnotexist'!
88 abort: unknown revision 'doesnotexist'!
89 [255]
89 [255]
90 $ hg clone -r 0 static-http://localhost:$HGPORT/remote local0
90 $ hg clone -r 0 static-http://localhost:$HGPORT/remote local0
91 adding changesets
91 adding changesets
92 adding manifests
92 adding manifests
93 adding file changes
93 adding file changes
94 added 1 changesets with 2 changes to 2 files
94 added 1 changesets with 2 changes to 2 files
95 new changesets 02770d679fb8
95 new changesets 02770d679fb8
96 updating to branch default
96 updating to branch default
97 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
97 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
98
98
99 test with "/" URI (issue747) and subrepo
99 test with "/" URI (issue747) and subrepo
100
100
101 $ hg init
101 $ hg init
102 $ hg init sub
102 $ hg init sub
103 $ touch sub/test
103 $ touch sub/test
104 $ hg -R sub commit -A -m "test"
104 $ hg -R sub commit -A -m "test"
105 adding test
105 adding test
106 $ hg -R sub tag not-empty
106 $ hg -R sub tag not-empty
107 $ echo sub=sub > .hgsub
107 $ echo sub=sub > .hgsub
108 $ echo a > a
108 $ echo a > a
109 $ hg add a .hgsub
109 $ hg add a .hgsub
110 $ hg -q ci -ma
110 $ hg -q ci -ma
111 $ hg clone static-http://localhost:$HGPORT/ local2
111 $ hg clone static-http://localhost:$HGPORT/ local2
112 requesting all changes
112 requesting all changes
113 adding changesets
113 adding changesets
114 adding manifests
114 adding manifests
115 adding file changes
115 adding file changes
116 added 1 changesets with 3 changes to 3 files
116 added 1 changesets with 3 changes to 3 files
117 new changesets a9ebfbe8e587
117 new changesets a9ebfbe8e587
118 updating to branch default
118 updating to branch default
119 cloning subrepo sub from static-http://localhost:$HGPORT/sub
119 cloning subrepo sub from static-http://localhost:$HGPORT/sub
120 requesting all changes
120 requesting all changes
121 adding changesets
121 adding changesets
122 adding manifests
122 adding manifests
123 adding file changes
123 adding file changes
124 added 2 changesets with 2 changes to 2 files
124 added 2 changesets with 2 changes to 2 files
125 new changesets be090ea66256:322ea90975df
125 new changesets be090ea66256:322ea90975df
126 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
126 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
127 $ cd local2
127 $ cd local2
128 $ hg verify
128 $ hg verify
129 checking changesets
129 checking changesets
130 checking manifests
130 checking manifests
131 crosschecking files in changesets and manifests
131 crosschecking files in changesets and manifests
132 checking files
132 checking files
133 checked 1 changesets with 3 changes to 3 files
133 checked 1 changesets with 3 changes to 3 files
134 checking subrepo links
134 checking subrepo links
135 $ cat a
135 $ cat a
136 a
136 a
137 $ hg paths
137 $ hg paths
138 default = static-http://localhost:$HGPORT/
138 default = static-http://localhost:$HGPORT/
139
139
140 test with empty repo (issue965)
140 test with empty repo (issue965)
141
141
142 $ cd ..
142 $ cd ..
143 $ hg init remotempty
143 $ hg init remotempty
144 $ hg clone static-http://localhost:$HGPORT/remotempty local3
144 $ hg clone static-http://localhost:$HGPORT/remotempty local3
145 no changes found
145 no changes found
146 updating to branch default
146 updating to branch default
147 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
147 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
148 $ cd local3
148 $ cd local3
149 $ hg verify
149 $ hg verify
150 checking changesets
150 checking changesets
151 checking manifests
151 checking manifests
152 crosschecking files in changesets and manifests
152 crosschecking files in changesets and manifests
153 checking files
153 checking files
154 checked 0 changesets with 0 changes to 0 files
154 checked 0 changesets with 0 changes to 0 files
155 $ hg paths
155 $ hg paths
156 default = static-http://localhost:$HGPORT/remotempty
156 default = static-http://localhost:$HGPORT/remotempty
157
157
158 test with non-repo
158 test with non-repo
159
159
160 $ cd ..
160 $ cd ..
161 $ mkdir notarepo
161 $ mkdir notarepo
162 $ hg clone static-http://localhost:$HGPORT/notarepo local3
162 $ hg clone static-http://localhost:$HGPORT/notarepo local3
163 abort: 'http://localhost:$HGPORT/notarepo' does not appear to be an hg repository!
163 abort: 'http://localhost:$HGPORT/notarepo' does not appear to be an hg repository!
164 [255]
164 [255]
165
165
166 Clone with tags and branches works
166 Clone with tags and branches works
167
167
168 $ hg init remote-with-names
168 $ hg init remote-with-names
169 $ cd remote-with-names
169 $ cd remote-with-names
170 $ echo 0 > foo
170 $ echo 0 > foo
171 $ hg -q commit -A -m initial
171 $ hg -q commit -A -m initial
172 $ echo 1 > foo
172 $ echo 1 > foo
173 $ hg commit -m 'commit 1'
173 $ hg commit -m 'commit 1'
174 $ hg -q up 0
174 $ hg -q up 0
175 $ hg branch mybranch
175 $ hg branch mybranch
176 marked working directory as branch mybranch
176 marked working directory as branch mybranch
177 (branches are permanent and global, did you want a bookmark?)
177 (branches are permanent and global, did you want a bookmark?)
178 $ echo 2 > foo
178 $ echo 2 > foo
179 $ hg commit -m 'commit 2 (mybranch)'
179 $ hg commit -m 'commit 2 (mybranch)'
180 $ hg tag -r 1 'default-tag'
180 $ hg tag -r 1 'default-tag'
181 $ hg tag -r 2 'branch-tag'
181 $ hg tag -r 2 'branch-tag'
182
182
183 $ cd ..
183 $ cd ..
184
184
185 $ hg clone static-http://localhost:$HGPORT/remote-with-names local-with-names
185 $ hg clone static-http://localhost:$HGPORT/remote-with-names local-with-names
186 requesting all changes
186 requesting all changes
187 adding changesets
187 adding changesets
188 adding manifests
188 adding manifests
189 adding file changes
189 adding file changes
190 added 5 changesets with 5 changes to 2 files (+1 heads)
190 added 5 changesets with 5 changes to 2 files (+1 heads)
191 new changesets 68986213bd44:0c325bd2b5a7
191 new changesets 68986213bd44:0c325bd2b5a7
192 updating to branch default
192 updating to branch default
193 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
193 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
194
194
195 Clone a specific branch works
195 Clone a specific branch works
196
196
197 $ hg clone -r mybranch static-http://localhost:$HGPORT/remote-with-names local-with-names-branch
197 $ hg clone -r mybranch static-http://localhost:$HGPORT/remote-with-names local-with-names-branch
198 adding changesets
198 adding changesets
199 adding manifests
199 adding manifests
200 adding file changes
200 adding file changes
201 added 4 changesets with 4 changes to 2 files
201 added 4 changesets with 4 changes to 2 files
202 new changesets 68986213bd44:0c325bd2b5a7
202 new changesets 68986213bd44:0c325bd2b5a7
203 updating to branch mybranch
203 updating to branch mybranch
204 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
204 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
205
205
206 Clone a specific tag works
206 Clone a specific tag works
207
207
208 $ hg clone -r default-tag static-http://localhost:$HGPORT/remote-with-names local-with-names-tag
208 $ hg clone -r default-tag static-http://localhost:$HGPORT/remote-with-names local-with-names-tag
209 adding changesets
209 adding changesets
210 adding manifests
210 adding manifests
211 adding file changes
211 adding file changes
212 added 2 changesets with 2 changes to 1 files
212 added 2 changesets with 2 changes to 1 files
213 new changesets 68986213bd44:4ee3fcef1c80
213 new changesets 68986213bd44:4ee3fcef1c80
214 updating to branch default
214 updating to branch default
215 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
215 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
216
216
217 $ killdaemons.py
217 $ killdaemons.py
218
218
219 List of files accessed over HTTP:
219 List of files accessed over HTTP:
220
220
221 $ cat server.log | sed -n -e 's|.*GET \(/[^ ]*\).*|\1|p' | sort -u
221 $ cat server.log | sed -n -e 's|.*GET \(/[^ ]*\).*|\1|p' | sort -u
222 /.hg/bookmarks
222 /.hg/bookmarks
223 /.hg/bookmarks.current
223 /.hg/bookmarks.current
224 /.hg/cache/hgtagsfnodes1
224 /.hg/cache/hgtagsfnodes1
225 /.hg/cache/rbc-names-v1
225 /.hg/cache/rbc-names-v1
226 /.hg/cache/rbc-revs-v1
226 /.hg/cache/rbc-revs-v1
227 /.hg/requires
227 /.hg/requires
228 /.hg/store/00changelog.i
228 /.hg/store/00changelog.i
229 /.hg/store/00manifest.i
229 /.hg/store/00manifest.i
230 /.hg/store/data/%7E2ehgsub.i
230 /.hg/store/data/%7E2ehgsub.i (no-py37 !)
231 /.hg/store/data/%7E2ehgsubstate.i
231 /.hg/store/data/%7E2ehgsubstate.i (no-py37 !)
232 /.hg/store/data/a.i
232 /.hg/store/data/a.i
233 /.hg/store/data/~2ehgsub.i (py37 !)
234 /.hg/store/data/~2ehgsubstate.i (py37 !)
233 /notarepo/.hg/00changelog.i
235 /notarepo/.hg/00changelog.i
234 /notarepo/.hg/requires
236 /notarepo/.hg/requires
235 /remote-with-names/.hg/bookmarks
237 /remote-with-names/.hg/bookmarks
236 /remote-with-names/.hg/bookmarks.current
238 /remote-with-names/.hg/bookmarks.current
237 /remote-with-names/.hg/cache/branch2-served
239 /remote-with-names/.hg/cache/branch2-served
238 /remote-with-names/.hg/cache/hgtagsfnodes1
240 /remote-with-names/.hg/cache/hgtagsfnodes1
239 /remote-with-names/.hg/cache/rbc-names-v1
241 /remote-with-names/.hg/cache/rbc-names-v1
240 /remote-with-names/.hg/cache/rbc-revs-v1
242 /remote-with-names/.hg/cache/rbc-revs-v1
241 /remote-with-names/.hg/cache/tags2-served
243 /remote-with-names/.hg/cache/tags2-served
242 /remote-with-names/.hg/localtags
244 /remote-with-names/.hg/localtags
243 /remote-with-names/.hg/requires
245 /remote-with-names/.hg/requires
244 /remote-with-names/.hg/store/00changelog.i
246 /remote-with-names/.hg/store/00changelog.i
245 /remote-with-names/.hg/store/00manifest.i
247 /remote-with-names/.hg/store/00manifest.i
246 /remote-with-names/.hg/store/data/%7E2ehgtags.i
248 /remote-with-names/.hg/store/data/%7E2ehgtags.i (no-py37 !)
247 /remote-with-names/.hg/store/data/foo.i
249 /remote-with-names/.hg/store/data/foo.i
250 /remote-with-names/.hg/store/data/~2ehgtags.i (py37 !)
248 /remote/.hg/bookmarks
251 /remote/.hg/bookmarks
249 /remote/.hg/bookmarks.current
252 /remote/.hg/bookmarks.current
250 /remote/.hg/cache/branch2-base
253 /remote/.hg/cache/branch2-base
251 /remote/.hg/cache/branch2-immutable
254 /remote/.hg/cache/branch2-immutable
252 /remote/.hg/cache/branch2-served
255 /remote/.hg/cache/branch2-served
253 /remote/.hg/cache/hgtagsfnodes1
256 /remote/.hg/cache/hgtagsfnodes1
254 /remote/.hg/cache/rbc-names-v1
257 /remote/.hg/cache/rbc-names-v1
255 /remote/.hg/cache/rbc-revs-v1
258 /remote/.hg/cache/rbc-revs-v1
256 /remote/.hg/cache/tags2-served
259 /remote/.hg/cache/tags2-served
257 /remote/.hg/localtags
260 /remote/.hg/localtags
258 /remote/.hg/requires
261 /remote/.hg/requires
259 /remote/.hg/store/00changelog.i
262 /remote/.hg/store/00changelog.i
260 /remote/.hg/store/00manifest.i
263 /remote/.hg/store/00manifest.i
261 /remote/.hg/store/data/%7E2edotfile%20with%20spaces.i
264 /remote/.hg/store/data/%7E2edotfile%20with%20spaces.i (no-py37 !)
262 /remote/.hg/store/data/%7E2ehgtags.i
265 /remote/.hg/store/data/%7E2ehgtags.i (no-py37 !)
263 /remote/.hg/store/data/bar.i
266 /remote/.hg/store/data/bar.i
264 /remote/.hg/store/data/quux.i
267 /remote/.hg/store/data/quux.i
268 /remote/.hg/store/data/~2edotfile%20with%20spaces.i (py37 !)
269 /remote/.hg/store/data/~2ehgtags.i (py37 !)
265 /remotempty/.hg/bookmarks
270 /remotempty/.hg/bookmarks
266 /remotempty/.hg/bookmarks.current
271 /remotempty/.hg/bookmarks.current
267 /remotempty/.hg/requires
272 /remotempty/.hg/requires
268 /remotempty/.hg/store/00changelog.i
273 /remotempty/.hg/store/00changelog.i
269 /remotempty/.hg/store/00manifest.i
274 /remotempty/.hg/store/00manifest.i
270 /sub/.hg/bookmarks
275 /sub/.hg/bookmarks
271 /sub/.hg/bookmarks.current
276 /sub/.hg/bookmarks.current
272 /sub/.hg/cache/hgtagsfnodes1
277 /sub/.hg/cache/hgtagsfnodes1
273 /sub/.hg/cache/rbc-names-v1
278 /sub/.hg/cache/rbc-names-v1
274 /sub/.hg/cache/rbc-revs-v1
279 /sub/.hg/cache/rbc-revs-v1
275 /sub/.hg/requires
280 /sub/.hg/requires
276 /sub/.hg/store/00changelog.i
281 /sub/.hg/store/00changelog.i
277 /sub/.hg/store/00manifest.i
282 /sub/.hg/store/00manifest.i
278 /sub/.hg/store/data/%7E2ehgtags.i
283 /sub/.hg/store/data/%7E2ehgtags.i (no-py37 !)
279 /sub/.hg/store/data/test.i
284 /sub/.hg/store/data/test.i
285 /sub/.hg/store/data/~2ehgtags.i (py37 !)
General Comments 0
You need to be logged in to leave comments. Login now