##// END OF EJS Templates
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)...
marmoute -
r48459:f030c7d2 default
parent child Browse files
Show More
@@ -405,6 +405,8 b' REVLOG_FILES_OTHER_EXT = ('
405 405 REVLOG_FILES_VOLATILE_EXT = (b'.n', b'.nd')
406 406
407 407 # some exception to the above matching
408 #
409 # XXX This is currently not in use because of issue6542
408 410 EXCLUDED = re.compile(b'.*undo\.[^/]+\.(nd?|i)$')
409 411
410 412
@@ -415,9 +417,12 b' def is_revlog(f, kind, st):'
415 417
416 418
417 419 def revlog_type(f):
418 if f.endswith(REVLOG_FILES_MAIN_EXT) and EXCLUDED.match(f) is None:
420 # XXX we need to filter `undo.` created by the transaction here, however
421 # being naive about it also filter revlog for `undo.*` files, leading to
422 # issue6542. So we no longer use EXCLUDED.
423 if f.endswith(REVLOG_FILES_MAIN_EXT):
419 424 return FILEFLAGS_REVLOG_MAIN
420 elif f.endswith(REVLOG_FILES_OTHER_EXT) and EXCLUDED.match(f) is None:
425 elif f.endswith(REVLOG_FILES_OTHER_EXT):
421 426 t = FILETYPE_FILELOG_OTHER
422 427 if f.endswith(REVLOG_FILES_VOLATILE_EXT):
423 428 t |= FILEFLAGS_VOLATILE
@@ -200,6 +200,17 b' def _clonerevlogs('
200 200 if not rl_type & store.FILEFLAGS_REVLOG_MAIN:
201 201 continue
202 202
203 # the store.walk function will wrongly pickup transaction backup and
204 # get confused. As a quick fix for 5.9 release, we ignore those.
205 # (this is not a module constants because it seems better to keep the
206 # hack together)
207 skip_undo = (
208 b'undo.backup.00changelog.i',
209 b'undo.backup.00manifest.i',
210 )
211 if unencoded in skip_undo:
212 continue
213
203 214 rl = _revlogfrompath(srcrepo, rl_type, unencoded)
204 215
205 216 info = rl.storageinfo(
@@ -21,6 +21,137 b' the status call is to check for issue513'
21 21 ... fh.write(b"%d" % i) and None
22 22 $ hg -q commit -A -m 'add a lot of files'
23 23 $ hg st
24
25 add files with "tricky" name:
26
27 $ echo foo > 00changelog.i
28 $ echo foo > 00changelog.d
29 $ echo foo > 00changelog.n
30 $ echo foo > 00changelog-ab349180a0405010.nd
31 $ echo foo > 00manifest.i
32 $ echo foo > 00manifest.d
33 $ echo foo > foo.i
34 $ echo foo > foo.d
35 $ echo foo > foo.n
36 $ echo foo > undo.py
37 $ echo foo > undo.i
38 $ echo foo > undo.d
39 $ echo foo > undo.n
40 $ echo foo > undo.foo.i
41 $ echo foo > undo.foo.d
42 $ echo foo > undo.foo.n
43 $ echo foo > undo.babar
44 $ mkdir savanah
45 $ echo foo > savanah/foo.i
46 $ echo foo > savanah/foo.d
47 $ echo foo > savanah/foo.n
48 $ echo foo > savanah/undo.py
49 $ echo foo > savanah/undo.i
50 $ echo foo > savanah/undo.d
51 $ echo foo > savanah/undo.n
52 $ echo foo > savanah/undo.foo.i
53 $ echo foo > savanah/undo.foo.d
54 $ echo foo > savanah/undo.foo.n
55 $ echo foo > savanah/undo.babar
56 $ mkdir data
57 $ echo foo > data/foo.i
58 $ echo foo > data/foo.d
59 $ echo foo > data/foo.n
60 $ echo foo > data/undo.py
61 $ echo foo > data/undo.i
62 $ echo foo > data/undo.d
63 $ echo foo > data/undo.n
64 $ echo foo > data/undo.foo.i
65 $ echo foo > data/undo.foo.d
66 $ echo foo > data/undo.foo.n
67 $ echo foo > data/undo.babar
68 $ mkdir meta
69 $ echo foo > meta/foo.i
70 $ echo foo > meta/foo.d
71 $ echo foo > meta/foo.n
72 $ echo foo > meta/undo.py
73 $ echo foo > meta/undo.i
74 $ echo foo > meta/undo.d
75 $ echo foo > meta/undo.n
76 $ echo foo > meta/undo.foo.i
77 $ echo foo > meta/undo.foo.d
78 $ echo foo > meta/undo.foo.n
79 $ echo foo > meta/undo.babar
80 $ mkdir store
81 $ echo foo > store/foo.i
82 $ echo foo > store/foo.d
83 $ echo foo > store/foo.n
84 $ echo foo > store/undo.py
85 $ echo foo > store/undo.i
86 $ echo foo > store/undo.d
87 $ echo foo > store/undo.n
88 $ echo foo > store/undo.foo.i
89 $ echo foo > store/undo.foo.d
90 $ echo foo > store/undo.foo.n
91 $ echo foo > store/undo.babar
92 $ hg add .
93 adding 00changelog-ab349180a0405010.nd
94 adding 00changelog.d
95 adding 00changelog.i
96 adding 00changelog.n
97 adding 00manifest.d
98 adding 00manifest.i
99 adding data/foo.d
100 adding data/foo.i
101 adding data/foo.n
102 adding data/undo.babar
103 adding data/undo.d
104 adding data/undo.foo.d
105 adding data/undo.foo.i
106 adding data/undo.foo.n
107 adding data/undo.i
108 adding data/undo.n
109 adding data/undo.py
110 adding foo.d
111 adding foo.i
112 adding foo.n
113 adding meta/foo.d
114 adding meta/foo.i
115 adding meta/foo.n
116 adding meta/undo.babar
117 adding meta/undo.d
118 adding meta/undo.foo.d
119 adding meta/undo.foo.i
120 adding meta/undo.foo.n
121 adding meta/undo.i
122 adding meta/undo.n
123 adding meta/undo.py
124 adding savanah/foo.d
125 adding savanah/foo.i
126 adding savanah/foo.n
127 adding savanah/undo.babar
128 adding savanah/undo.d
129 adding savanah/undo.foo.d
130 adding savanah/undo.foo.i
131 adding savanah/undo.foo.n
132 adding savanah/undo.i
133 adding savanah/undo.n
134 adding savanah/undo.py
135 adding store/foo.d
136 adding store/foo.i
137 adding store/foo.n
138 adding store/undo.babar
139 adding store/undo.d
140 adding store/undo.foo.d
141 adding store/undo.foo.i
142 adding store/undo.foo.n
143 adding store/undo.i
144 adding store/undo.n
145 adding store/undo.py
146 adding undo.babar
147 adding undo.d
148 adding undo.foo.d
149 adding undo.foo.i
150 adding undo.foo.n
151 adding undo.i
152 adding undo.n
153 adding undo.py
154 $ hg ci -m 'add files with "tricky" name'
24 155 $ hg --config server.uncompressed=false serve -p $HGPORT -d --pid-file=hg.pid
25 156 $ cat hg.pid > $DAEMON_PIDS
26 157 $ cd ..
@@ -80,8 +211,8 b' Cannot stream clone when server.uncompre'
80 211 adding changesets
81 212 adding manifests
82 213 adding file changes
83 added 2 changesets with 1025 changes to 1025 files
84 new changesets 96ee1d7354c4:c17445101a72
214 added 3 changesets with 1086 changes to 1086 files
215 new changesets 96ee1d7354c4:7406a3463c3d
85 216
86 217 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=getbundle' content-type --bodyfile body --hgproto 0.2 --requestheader "x-hgarg-1=bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=0&common=0000000000000000000000000000000000000000&heads=c17445101a72edac06facd130d14808dfbd5c7c2&stream=1"
87 218 200 Script output follows
@@ -147,8 +278,8 b' Cannot stream clone when server.uncompre'
147 278 adding changesets
148 279 adding manifests
149 280 adding file changes
150 added 2 changesets with 1025 changes to 1025 files
151 new changesets 96ee1d7354c4:c17445101a72
281 added 3 changesets with 1086 changes to 1086 files
282 new changesets 96ee1d7354c4:7406a3463c3d
152 283
153 284 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=getbundle' content-type --bodyfile body --hgproto 0.2 --requestheader "x-hgarg-1=bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=0&common=0000000000000000000000000000000000000000&heads=c17445101a72edac06facd130d14808dfbd5c7c2&stream=1"
154 285 200 Script output follows
@@ -178,10 +309,10 b' Basic clone'
178 309 #if stream-legacy
179 310 $ hg clone --stream -U http://localhost:$HGPORT clone1
180 311 streaming all changes
181 1027 files to transfer, 96.3 KB of data (no-zstd !)
182 transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !)
183 1027 files to transfer, 93.5 KB of data (zstd !)
184 transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
312 1088 files to transfer, 101 KB of data (no-zstd !)
313 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
314 1088 files to transfer, 98.4 KB of data (zstd !)
315 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
185 316 searching for changes
186 317 no changes found
187 318 $ cat server/errors.txt
@@ -189,10 +320,10 b' Basic clone'
189 320 #if stream-bundle2
190 321 $ hg clone --stream -U http://localhost:$HGPORT clone1
191 322 streaming all changes
192 1030 files to transfer, 96.5 KB of data (no-zstd !)
193 transferred 96.5 KB in * seconds (*/sec) (glob) (no-zstd !)
194 1030 files to transfer, 93.6 KB of data (zstd !)
195 transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !)
323 1091 files to transfer, 101 KB of data (no-zstd !)
324 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
325 1091 files to transfer, 98.5 KB of data (zstd !)
326 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
196 327
197 328 $ ls -1 clone1/.hg/cache
198 329 branch2-base
@@ -217,63 +348,63 b' getbundle requests with stream=1 are unc'
217 348
218 349 #if no-zstd no-rust
219 350 $ f --size --hex --bytes 256 body
220 body: size=112262
351 body: size=118551
221 352 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
222 0010: 7f 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
223 0020: 05 09 04 0c 44 62 79 74 65 63 6f 75 6e 74 39 38 |....Dbytecount98|
224 0030: 37 37 35 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |775filecount1030|
225 0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote|
226 0050: 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 25 |ncode%2Cfncache%|
227 0060: 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 32 |2Cgeneraldelta%2|
228 0070: 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 72 |Crevlogv1%2Cspar|
229 0080: 73 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 65 |serevlog%2Cstore|
230 0090: 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 00 |....s.Bdata/0.i.|
231 00a0: 03 00 01 00 00 00 00 00 00 00 02 00 00 00 01 00 |................|
232 00b0: 00 00 00 00 00 00 01 ff ff ff ff ff ff ff ff 80 |................|
233 00c0: 29 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c 69 |)c.I.#....Vg.g,i|
234 00d0: d1 ec 39 00 00 00 00 00 00 00 00 00 00 00 00 75 |..9............u|
235 00e0: 30 73 08 42 64 61 74 61 2f 31 2e 69 00 03 00 01 |0s.Bdata/1.i....|
236 00f0: 00 00 00 00 00 00 00 02 00 00 00 01 00 00 00 00 |................|
353 0010: 80 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
354 0020: 06 09 04 0c 44 62 79 74 65 63 6f 75 6e 74 31 30 |....Dbytecount10|
355 0030: 33 36 39 35 66 69 6c 65 63 6f 75 6e 74 31 30 39 |3695filecount109|
356 0040: 31 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |1requirementsdot|
357 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
358 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
359 0070: 32 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 |2Crevlogv1%2Cspa|
360 0080: 72 73 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 |rserevlog%2Cstor|
361 0090: 65 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 |e....s.Bdata/0.i|
362 00a0: 00 03 00 01 00 00 00 00 00 00 00 02 00 00 00 01 |................|
363 00b0: 00 00 00 00 00 00 00 01 ff ff ff ff ff ff ff ff |................|
364 00c0: 80 29 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c |.)c.I.#....Vg.g,|
365 00d0: 69 d1 ec 39 00 00 00 00 00 00 00 00 00 00 00 00 |i..9............|
366 00e0: 75 30 73 26 45 64 61 74 61 2f 30 30 63 68 61 6e |u0s&Edata/00chan|
367 00f0: 67 65 6c 6f 67 2d 61 62 33 34 39 31 38 30 61 30 |gelog-ab349180a0|
237 368 #endif
238 369 #if zstd no-rust
239 370 $ f --size --hex --bytes 256 body
240 body: size=109410
371 body: size=115738
241 372 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
242 0010: 99 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
243 0020: 05 09 04 0c 5e 62 79 74 65 63 6f 75 6e 74 39 35 |....^bytecount95|
244 0030: 38 39 37 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |897filecount1030|
245 0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote|
246 0050: 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 25 |ncode%2Cfncache%|
247 0060: 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 32 |2Cgeneraldelta%2|
248 0070: 43 72 65 76 6c 6f 67 2d 63 6f 6d 70 72 65 73 73 |Crevlog-compress|
249 0080: 69 6f 6e 2d 7a 73 74 64 25 32 43 72 65 76 6c 6f |ion-zstd%2Crevlo|
250 0090: 67 76 31 25 32 43 73 70 61 72 73 65 72 65 76 6c |gv1%2Csparserevl|
251 00a0: 6f 67 25 32 43 73 74 6f 72 65 00 00 80 00 73 08 |og%2Cstore....s.|
252 00b0: 42 64 61 74 61 2f 30 2e 69 00 03 00 01 00 00 00 |Bdata/0.i.......|
253 00c0: 00 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 |................|
254 00d0: 01 ff ff ff ff ff ff ff ff 80 29 63 a0 49 d3 23 |..........)c.I.#|
255 00e0: 87 bf ce fe 56 67 92 67 2c 69 d1 ec 39 00 00 00 |....Vg.g,i..9...|
256 00f0: 00 00 00 00 00 00 00 00 00 75 30 73 08 42 64 61 |.........u0s.Bda|
373 0010: 9a 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
374 0020: 06 09 04 0c 5e 62 79 74 65 63 6f 75 6e 74 31 30 |....^bytecount10|
375 0030: 30 38 35 36 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0856filecount109|
376 0040: 31 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |1requirementsdot|
377 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
378 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
379 0070: 32 43 72 65 76 6c 6f 67 2d 63 6f 6d 70 72 65 73 |2Crevlog-compres|
380 0080: 73 69 6f 6e 2d 7a 73 74 64 25 32 43 72 65 76 6c |sion-zstd%2Crevl|
381 0090: 6f 67 76 31 25 32 43 73 70 61 72 73 65 72 65 76 |ogv1%2Csparserev|
382 00a0: 6c 6f 67 25 32 43 73 74 6f 72 65 00 00 80 00 73 |log%2Cstore....s|
383 00b0: 08 42 64 61 74 61 2f 30 2e 69 00 03 00 01 00 00 |.Bdata/0.i......|
384 00c0: 00 00 00 00 00 02 00 00 00 01 00 00 00 00 00 00 |................|
385 00d0: 00 01 ff ff ff ff ff ff ff ff 80 29 63 a0 49 d3 |...........)c.I.|
386 00e0: 23 87 bf ce fe 56 67 92 67 2c 69 d1 ec 39 00 00 |#....Vg.g,i..9..|
387 00f0: 00 00 00 00 00 00 00 00 00 00 75 30 73 26 45 64 |..........u0s&Ed|
257 388 #endif
258 389 #if zstd rust no-dirstate-v2
259 390 $ f --size --hex --bytes 256 body
260 body: size=109431
391 body: size=115759
261 392 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
262 0010: ae 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
263 0020: 05 09 04 0c 73 62 79 74 65 63 6f 75 6e 74 39 35 |....sbytecount95|
264 0030: 38 39 37 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |897filecount1030|
265 0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote|
266 0050: 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 25 |ncode%2Cfncache%|
267 0060: 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 32 |2Cgeneraldelta%2|
268 0070: 43 70 65 72 73 69 73 74 65 6e 74 2d 6e 6f 64 65 |Cpersistent-node|
269 0080: 6d 61 70 25 32 43 72 65 76 6c 6f 67 2d 63 6f 6d |map%2Crevlog-com|
270 0090: 70 72 65 73 73 69 6f 6e 2d 7a 73 74 64 25 32 43 |pression-zstd%2C|
271 00a0: 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 72 73 |revlogv1%2Cspars|
272 00b0: 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 65 00 |erevlog%2Cstore.|
273 00c0: 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 00 03 |...s.Bdata/0.i..|
274 00d0: 00 01 00 00 00 00 00 00 00 02 00 00 00 01 00 00 |................|
275 00e0: 00 00 00 00 00 01 ff ff ff ff ff ff ff ff 80 29 |...............)|
276 00f0: 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c 69 d1 |c.I.#....Vg.g,i.|
393 0010: af 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
394 0020: 06 09 04 0c 73 62 79 74 65 63 6f 75 6e 74 31 30 |....sbytecount10|
395 0030: 30 38 35 36 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0856filecount109|
396 0040: 31 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |1requirementsdot|
397 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
398 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
399 0070: 32 43 70 65 72 73 69 73 74 65 6e 74 2d 6e 6f 64 |2Cpersistent-nod|
400 0080: 65 6d 61 70 25 32 43 72 65 76 6c 6f 67 2d 63 6f |emap%2Crevlog-co|
401 0090: 6d 70 72 65 73 73 69 6f 6e 2d 7a 73 74 64 25 32 |mpression-zstd%2|
402 00a0: 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 72 |Crevlogv1%2Cspar|
403 00b0: 73 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 65 |serevlog%2Cstore|
404 00c0: 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 00 |....s.Bdata/0.i.|
405 00d0: 03 00 01 00 00 00 00 00 00 00 02 00 00 00 01 00 |................|
406 00e0: 00 00 00 00 00 00 01 ff ff ff ff ff ff ff ff 80 |................|
407 00f0: 29 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c 69 |)c.I.#....Vg.g,i|
277 408 #endif
278 409 #if zstd dirstate-v2
279 410 $ f --size --hex --bytes 256 body
@@ -301,20 +432,20 b' getbundle requests with stream=1 are unc'
301 432 #if stream-legacy
302 433 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
303 434 streaming all changes
304 1027 files to transfer, 96.3 KB of data (no-zstd !)
305 transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !)
306 1027 files to transfer, 93.5 KB of data (zstd !)
307 transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
435 1088 files to transfer, 101 KB of data (no-zstd !)
436 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
437 1088 files to transfer, 98.4 KB of data (zstd !)
438 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
308 439 searching for changes
309 440 no changes found
310 441 #endif
311 442 #if stream-bundle2
312 443 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
313 444 streaming all changes
314 1030 files to transfer, 96.5 KB of data (no-zstd !)
315 transferred 96.5 KB in * seconds (* */sec) (glob) (no-zstd !)
316 1030 files to transfer, 93.6 KB of data (zstd !)
317 transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !)
445 1091 files to transfer, 101 KB of data (no-zstd !)
446 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
447 1091 files to transfer, 98.5 KB of data (zstd !)
448 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
318 449 #endif
319 450
320 451 Clone with background file closing enabled
@@ -326,12 +457,12 b' Clone with background file closing enabl'
326 457 sending branchmap command
327 458 streaming all changes
328 459 sending stream_out command
329 1027 files to transfer, 96.3 KB of data (no-zstd !)
330 1027 files to transfer, 93.5 KB of data (zstd !)
460 1088 files to transfer, 101 KB of data (no-zstd !)
461 1088 files to transfer, 98.4 KB of data (zstd !)
331 462 starting 4 threads for background file closing
332 463 updating the branch cache
333 transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !)
334 transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
464 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
465 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
335 466 query 1; heads
336 467 sending batch command
337 468 searching for changes
@@ -358,15 +489,15 b' Clone with background file closing enabl'
358 489 bundle2-input-bundle: with-transaction
359 490 bundle2-input-part: "stream2" (params: 3 mandatory) supported
360 491 applying stream bundle
361 1030 files to transfer, 96.5 KB of data (no-zstd !)
362 1030 files to transfer, 93.6 KB of data (zstd !)
492 1091 files to transfer, 101 KB of data (no-zstd !)
493 1091 files to transfer, 98.5 KB of data (zstd !)
363 494 starting 4 threads for background file closing
364 495 starting 4 threads for background file closing
365 496 updating the branch cache
366 transferred 96.5 KB in * seconds (* */sec) (glob) (no-zstd !)
367 bundle2-input-part: total payload size 112094 (no-zstd !)
368 transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !)
369 bundle2-input-part: total payload size 109216 (zstd !)
497 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
498 bundle2-input-part: total payload size 118382 (no-zstd !)
499 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
500 bundle2-input-part: total payload size 115543 (zstd !)
370 501 bundle2-input-part: "listkeys" (params: 1 mandatory) supported
371 502 bundle2-input-bundle: 2 parts total
372 503 checking for updated bookmarks
@@ -383,8 +514,8 b' Cannot stream clone when there are secre'
383 514 adding changesets
384 515 adding manifests
385 516 adding file changes
386 added 1 changesets with 1 changes to 1 files
387 new changesets 96ee1d7354c4
517 added 2 changesets with 1025 changes to 1025 files
518 new changesets 96ee1d7354c4:c17445101a72
388 519
389 520 $ killdaemons.py
390 521
@@ -398,20 +529,20 b' Streaming of secrets can be overridden b'
398 529 #if stream-legacy
399 530 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
400 531 streaming all changes
401 1027 files to transfer, 96.3 KB of data (no-zstd !)
402 transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !)
403 1027 files to transfer, 93.5 KB of data (zstd !)
404 transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
532 1088 files to transfer, 101 KB of data (no-zstd !)
533 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
534 1088 files to transfer, 98.4 KB of data (zstd !)
535 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
405 536 searching for changes
406 537 no changes found
407 538 #endif
408 539 #if stream-bundle2
409 540 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
410 541 streaming all changes
411 1030 files to transfer, 96.5 KB of data (no-zstd !)
412 transferred 96.5 KB in * seconds (* */sec) (glob) (no-zstd !)
413 1030 files to transfer, 93.6 KB of data (zstd !)
414 transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !)
542 1091 files to transfer, 101 KB of data (no-zstd !)
543 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
544 1091 files to transfer, 98.5 KB of data (zstd !)
545 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
415 546 #endif
416 547
417 548 $ killdaemons.py
@@ -428,8 +559,8 b' Verify interaction between preferuncompr'
428 559 adding changesets
429 560 adding manifests
430 561 adding file changes
431 added 1 changesets with 1 changes to 1 files
432 new changesets 96ee1d7354c4
562 added 2 changesets with 1025 changes to 1025 files
563 new changesets 96ee1d7354c4:c17445101a72
433 564
434 565 $ killdaemons.py
435 566
@@ -458,8 +589,8 b" there is no security so it isn't importa"
458 589 adding changesets
459 590 adding manifests
460 591 adding file changes
461 added 1 changesets with 1 changes to 1 files
462 new changesets 96ee1d7354c4
592 added 2 changesets with 1025 changes to 1025 files
593 new changesets 96ee1d7354c4:c17445101a72
463 594
464 595 Stream clone while repo is changing:
465 596
@@ -550,27 +681,33 b' clone it'
550 681 #if stream-legacy
551 682 $ hg clone --stream http://localhost:$HGPORT with-bookmarks
552 683 streaming all changes
553 1027 files to transfer, 96.3 KB of data (no-zstd !)
554 transferred 96.3 KB in * seconds (*) (glob) (no-zstd !)
555 1027 files to transfer, 93.5 KB of data (zstd !)
556 transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
684 1088 files to transfer, 101 KB of data (no-zstd !)
685 transferred 101 KB in * seconds (*) (glob) (no-zstd !)
686 1088 files to transfer, 98.4 KB of data (zstd !)
687 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
557 688 searching for changes
558 689 no changes found
559 690 updating to branch default
560 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
691 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
561 692 #endif
562 693 #if stream-bundle2
563 694 $ hg clone --stream http://localhost:$HGPORT with-bookmarks
564 695 streaming all changes
565 1033 files to transfer, 96.6 KB of data (no-zstd !)
566 transferred 96.6 KB in * seconds (* */sec) (glob) (no-zstd !)
567 1033 files to transfer, 93.8 KB of data (zstd !)
568 transferred 93.8 KB in * seconds (* */sec) (glob) (zstd !)
696 1094 files to transfer, 101 KB of data (no-zstd !)
697 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
698 1094 files to transfer, 98.7 KB of data (zstd !)
699 transferred 98.7 KB in * seconds (* */sec) (glob) (zstd !)
569 700 updating to branch default
570 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
701 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
571 702 #endif
703 $ hg verify -R with-bookmarks
704 checking changesets
705 checking manifests
706 crosschecking files in changesets and manifests
707 checking files
708 checked 3 changesets with 1086 changes to 1086 files
572 709 $ hg -R with-bookmarks bookmarks
573 some-bookmark 1:c17445101a72
710 some-bookmark 2:7406a3463c3d
574 711
575 712 Stream repository with phases
576 713 -----------------------------
@@ -580,32 +717,40 b' Clone as publishing'
580 717 $ hg -R server phase -r 'all()'
581 718 0: draft
582 719 1: draft
720 2: draft
583 721
584 722 #if stream-legacy
585 723 $ hg clone --stream http://localhost:$HGPORT phase-publish
586 724 streaming all changes
587 1027 files to transfer, 96.3 KB of data (no-zstd !)
588 transferred 96.3 KB in * seconds (*) (glob) (no-zstd !)
589 1027 files to transfer, 93.5 KB of data (zstd !)
590 transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
725 1088 files to transfer, 101 KB of data (no-zstd !)
726 transferred 101 KB in * seconds (*) (glob) (no-zstd !)
727 1088 files to transfer, 98.4 KB of data (zstd !)
728 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
591 729 searching for changes
592 730 no changes found
593 731 updating to branch default
594 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
732 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
595 733 #endif
596 734 #if stream-bundle2
597 735 $ hg clone --stream http://localhost:$HGPORT phase-publish
598 736 streaming all changes
599 1033 files to transfer, 96.6 KB of data (no-zstd !)
600 transferred 96.6 KB in * seconds (* */sec) (glob) (no-zstd !)
601 1033 files to transfer, 93.8 KB of data (zstd !)
602 transferred 93.8 KB in * seconds (* */sec) (glob) (zstd !)
737 1094 files to transfer, 101 KB of data (no-zstd !)
738 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
739 1094 files to transfer, 98.7 KB of data (zstd !)
740 transferred 98.7 KB in * seconds (* */sec) (glob) (zstd !)
603 741 updating to branch default
604 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
742 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
605 743 #endif
744 $ hg verify -R phase-publish
745 checking changesets
746 checking manifests
747 crosschecking files in changesets and manifests
748 checking files
749 checked 3 changesets with 1086 changes to 1086 files
606 750 $ hg -R phase-publish phase -r 'all()'
607 751 0: public
608 752 1: public
753 2: public
609 754
610 755 Clone as non publishing
611 756
@@ -624,31 +769,39 b' stream v1 unsuitable for non-publishing '
624 769
625 770 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
626 771 streaming all changes
627 1027 files to transfer, 96.3 KB of data (no-zstd !)
628 transferred 96.3 KB in * seconds (* */sec) (glob) (no-zstd !)
629 1027 files to transfer, 93.5 KB of data (zstd !)
630 transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
772 1088 files to transfer, 101 KB of data (no-zstd !)
773 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
774 1088 files to transfer, 98.4 KB of data (zstd !)
775 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
631 776 searching for changes
632 777 no changes found
633 778 updating to branch default
634 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
779 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
635 780 $ hg -R phase-no-publish phase -r 'all()'
636 781 0: public
637 782 1: public
783 2: public
638 784 #endif
639 785 #if stream-bundle2
640 786 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
641 787 streaming all changes
642 1034 files to transfer, 96.7 KB of data (no-zstd !)
643 transferred 96.7 KB in * seconds (* */sec) (glob) (no-zstd !)
644 1034 files to transfer, 93.9 KB of data (zstd !)
645 transferred 93.9 KB in * seconds (* */sec) (glob) (zstd !)
788 1095 files to transfer, 101 KB of data (no-zstd !)
789 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
790 1095 files to transfer, 98.7 KB of data (zstd !)
791 transferred 98.7 KB in * seconds (* */sec) (glob) (zstd !)
646 792 updating to branch default
647 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
793 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
648 794 $ hg -R phase-no-publish phase -r 'all()'
649 795 0: draft
650 796 1: draft
797 2: draft
651 798 #endif
799 $ hg verify -R phase-no-publish
800 checking changesets
801 checking manifests
802 crosschecking files in changesets and manifests
803 checking files
804 checked 3 changesets with 1086 changes to 1086 files
652 805
653 806 $ killdaemons.py
654 807
@@ -678,6 +831,7 b' Clone non-publishing with obsolescence'
678 831 obsoleted 1 changesets
679 832 $ hg up null -q
680 833 $ hg log -T '{rev}: {phase}\n'
834 2: draft
681 835 1: draft
682 836 0: draft
683 837 $ hg serve -p $HGPORT -d --pid-file=hg.pid
@@ -686,15 +840,22 b' Clone non-publishing with obsolescence'
686 840
687 841 $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence
688 842 streaming all changes
689 1035 files to transfer, 97.1 KB of data (no-zstd !)
690 transferred 97.1 KB in * seconds (* */sec) (glob) (no-zstd !)
691 1035 files to transfer, 94.3 KB of data (zstd !)
692 transferred 94.3 KB in * seconds (* */sec) (glob) (zstd !)
843 1096 files to transfer, 102 KB of data (no-zstd !)
844 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
845 1096 files to transfer, 99.1 KB of data (zstd !)
846 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd !)
693 847 $ hg -R with-obsolescence log -T '{rev}: {phase}\n'
848 2: draft
694 849 1: draft
695 850 0: draft
696 851 $ hg debugobsolete -R with-obsolescence
697 50382b884f66690b7045cac93a540cba4d4c906f 0 {c17445101a72edac06facd130d14808dfbd5c7c2} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
852 aa82d3f59e13f41649d8ba3324e1ac8849ba78e7 0 {7406a3463c3de22c4288b4306d199705369a285a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
853 $ hg verify -R with-obsolescence
854 checking changesets
855 checking manifests
856 crosschecking files in changesets and manifests
857 checking files
858 checked 4 changesets with 1087 changes to 1086 files
698 859
699 860 $ hg clone -U --stream --config experimental.evolution=0 http://localhost:$HGPORT with-obsolescence-no-evolution
700 861 streaming all changes
@@ -997,7 +997,12 b' Performe the mix of clone and full refre'
997 997 $ hg -R test-repo/ debugupdatecache
998 998 $ touch $HG_TEST_STREAM_WALKED_FILE_2
999 999 $ $RUNTESTDIR/testlib/wait-on-file 10 $HG_TEST_STREAM_WALKED_FILE_3
1000
1001 (note: the stream clone code wronly pick the `undo.` files)
1002
1000 1003 $ cat clone-output-2
1004 adding [s] undo.backup.00manifest.n (62 bytes) (known-bad-output !)
1005 adding [s] undo.backup.00changelog.n (62 bytes) (known-bad-output !)
1001 1006 adding [s] 00manifest.n (62 bytes)
1002 1007 adding [s] 00manifest-*.nd (118 KB) (glob)
1003 1008 adding [s] 00changelog.n (62 bytes)
General Comments 0
You need to be logged in to leave comments. Login now