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