##// 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 REVLOG_FILES_VOLATILE_EXT = (b'.n', b'.nd')
405 REVLOG_FILES_VOLATILE_EXT = (b'.n', b'.nd')
406
406
407 # some exception to the above matching
407 # some exception to the above matching
408 #
409 # XXX This is currently not in use because of issue6542
408 EXCLUDED = re.compile(b'.*undo\.[^/]+\.(nd?|i)$')
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 def revlog_type(f):
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 return FILEFLAGS_REVLOG_MAIN
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 t = FILETYPE_FILELOG_OTHER
426 t = FILETYPE_FILELOG_OTHER
422 if f.endswith(REVLOG_FILES_VOLATILE_EXT):
427 if f.endswith(REVLOG_FILES_VOLATILE_EXT):
423 t |= FILEFLAGS_VOLATILE
428 t |= FILEFLAGS_VOLATILE
@@ -200,6 +200,17 b' def _clonerevlogs('
200 if not rl_type & store.FILEFLAGS_REVLOG_MAIN:
200 if not rl_type & store.FILEFLAGS_REVLOG_MAIN:
201 continue
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 rl = _revlogfrompath(srcrepo, rl_type, unencoded)
214 rl = _revlogfrompath(srcrepo, rl_type, unencoded)
204
215
205 info = rl.storageinfo(
216 info = rl.storageinfo(
@@ -21,6 +21,137 b' the status call is to check for issue513'
21 ... fh.write(b"%d" % i) and None
21 ... fh.write(b"%d" % i) and None
22 $ hg -q commit -A -m 'add a lot of files'
22 $ hg -q commit -A -m 'add a lot of files'
23 $ hg st
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 $ hg --config server.uncompressed=false serve -p $HGPORT -d --pid-file=hg.pid
155 $ hg --config server.uncompressed=false serve -p $HGPORT -d --pid-file=hg.pid
25 $ cat hg.pid > $DAEMON_PIDS
156 $ cat hg.pid > $DAEMON_PIDS
26 $ cd ..
157 $ cd ..
@@ -80,8 +211,8 b' Cannot stream clone when server.uncompre'
80 adding changesets
211 adding changesets
81 adding manifests
212 adding manifests
82 adding file changes
213 adding file changes
83 added 2 changesets with 1025 changes to 1025 files
214 added 3 changesets with 1086 changes to 1086 files
84 new changesets 96ee1d7354c4:c17445101a72
215 new changesets 96ee1d7354c4:7406a3463c3d
85
216
86 $ 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"
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 200 Script output follows
218 200 Script output follows
@@ -147,8 +278,8 b' Cannot stream clone when server.uncompre'
147 adding changesets
278 adding changesets
148 adding manifests
279 adding manifests
149 adding file changes
280 adding file changes
150 added 2 changesets with 1025 changes to 1025 files
281 added 3 changesets with 1086 changes to 1086 files
151 new changesets 96ee1d7354c4:c17445101a72
282 new changesets 96ee1d7354c4:7406a3463c3d
152
283
153 $ 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"
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 200 Script output follows
285 200 Script output follows
@@ -178,10 +309,10 b' Basic clone'
178 #if stream-legacy
309 #if stream-legacy
179 $ hg clone --stream -U http://localhost:$HGPORT clone1
310 $ hg clone --stream -U http://localhost:$HGPORT clone1
180 streaming all changes
311 streaming all changes
181 1027 files to transfer, 96.3 KB of data (no-zstd !)
312 1088 files to transfer, 101 KB of data (no-zstd !)
182 transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !)
313 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
183 1027 files to transfer, 93.5 KB of data (zstd !)
314 1088 files to transfer, 98.4 KB of data (zstd !)
184 transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
315 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
185 searching for changes
316 searching for changes
186 no changes found
317 no changes found
187 $ cat server/errors.txt
318 $ cat server/errors.txt
@@ -189,10 +320,10 b' Basic clone'
189 #if stream-bundle2
320 #if stream-bundle2
190 $ hg clone --stream -U http://localhost:$HGPORT clone1
321 $ hg clone --stream -U http://localhost:$HGPORT clone1
191 streaming all changes
322 streaming all changes
192 1030 files to transfer, 96.5 KB of data (no-zstd !)
323 1091 files to transfer, 101 KB of data (no-zstd !)
193 transferred 96.5 KB in * seconds (*/sec) (glob) (no-zstd !)
324 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
194 1030 files to transfer, 93.6 KB of data (zstd !)
325 1091 files to transfer, 98.5 KB of data (zstd !)
195 transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !)
326 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
196
327
197 $ ls -1 clone1/.hg/cache
328 $ ls -1 clone1/.hg/cache
198 branch2-base
329 branch2-base
@@ -217,63 +348,63 b' getbundle requests with stream=1 are unc'
217
348
218 #if no-zstd no-rust
349 #if no-zstd no-rust
219 $ f --size --hex --bytes 256 body
350 $ f --size --hex --bytes 256 body
220 body: size=112262
351 body: size=118551
221 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
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.......|
353 0010: 80 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|
354 0020: 06 09 04 0c 44 62 79 74 65 63 6f 75 6e 74 31 30 |....Dbytecount10|
224 0030: 37 37 35 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |775filecount1030|
355 0030: 33 36 39 35 66 69 6c 65 63 6f 75 6e 74 31 30 39 |3695filecount109|
225 0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote|
356 0040: 31 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |1requirementsdot|
226 0050: 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 25 |ncode%2Cfncache%|
357 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
227 0060: 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 32 |2Cgeneraldelta%2|
358 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
228 0070: 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 72 |Crevlogv1%2Cspar|
359 0070: 32 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 |2Crevlogv1%2Cspa|
229 0080: 73 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 65 |serevlog%2Cstore|
360 0080: 72 73 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 |rserevlog%2Cstor|
230 0090: 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 00 |....s.Bdata/0.i.|
361 0090: 65 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 |e....s.Bdata/0.i|
231 00a0: 03 00 01 00 00 00 00 00 00 00 02 00 00 00 01 00 |................|
362 00a0: 00 03 00 01 00 00 00 00 00 00 00 02 00 00 00 01 |................|
232 00b0: 00 00 00 00 00 00 01 ff ff ff ff ff ff ff ff 80 |................|
363 00b0: 00 00 00 00 00 00 00 01 ff ff ff ff ff ff ff ff |................|
233 00c0: 29 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c 69 |)c.I.#....Vg.g,i|
364 00c0: 80 29 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c |.)c.I.#....Vg.g,|
234 00d0: d1 ec 39 00 00 00 00 00 00 00 00 00 00 00 00 75 |..9............u|
365 00d0: 69 d1 ec 39 00 00 00 00 00 00 00 00 00 00 00 00 |i..9............|
235 00e0: 30 73 08 42 64 61 74 61 2f 31 2e 69 00 03 00 01 |0s.Bdata/1.i....|
366 00e0: 75 30 73 26 45 64 61 74 61 2f 30 30 63 68 61 6e |u0s&Edata/00chan|
236 00f0: 00 00 00 00 00 00 00 02 00 00 00 01 00 00 00 00 |................|
367 00f0: 67 65 6c 6f 67 2d 61 62 33 34 39 31 38 30 61 30 |gelog-ab349180a0|
237 #endif
368 #endif
238 #if zstd no-rust
369 #if zstd no-rust
239 $ f --size --hex --bytes 256 body
370 $ f --size --hex --bytes 256 body
240 body: size=109410
371 body: size=115738
241 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
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.......|
373 0010: 9a 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|
374 0020: 06 09 04 0c 5e 62 79 74 65 63 6f 75 6e 74 31 30 |....^bytecount10|
244 0030: 38 39 37 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |897filecount1030|
375 0030: 30 38 35 36 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0856filecount109|
245 0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote|
376 0040: 31 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |1requirementsdot|
246 0050: 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 25 |ncode%2Cfncache%|
377 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
247 0060: 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 32 |2Cgeneraldelta%2|
378 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
248 0070: 43 72 65 76 6c 6f 67 2d 63 6f 6d 70 72 65 73 73 |Crevlog-compress|
379 0070: 32 43 72 65 76 6c 6f 67 2d 63 6f 6d 70 72 65 73 |2Crevlog-compres|
249 0080: 69 6f 6e 2d 7a 73 74 64 25 32 43 72 65 76 6c 6f |ion-zstd%2Crevlo|
380 0080: 73 69 6f 6e 2d 7a 73 74 64 25 32 43 72 65 76 6c |sion-zstd%2Crevl|
250 0090: 67 76 31 25 32 43 73 70 61 72 73 65 72 65 76 6c |gv1%2Csparserevl|
381 0090: 6f 67 76 31 25 32 43 73 70 61 72 73 65 72 65 76 |ogv1%2Csparserev|
251 00a0: 6f 67 25 32 43 73 74 6f 72 65 00 00 80 00 73 08 |og%2Cstore....s.|
382 00a0: 6c 6f 67 25 32 43 73 74 6f 72 65 00 00 80 00 73 |log%2Cstore....s|
252 00b0: 42 64 61 74 61 2f 30 2e 69 00 03 00 01 00 00 00 |Bdata/0.i.......|
383 00b0: 08 42 64 61 74 61 2f 30 2e 69 00 03 00 01 00 00 |.Bdata/0.i......|
253 00c0: 00 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 |................|
384 00c0: 00 00 00 00 00 02 00 00 00 01 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.#|
385 00d0: 00 01 ff ff ff ff ff ff ff ff 80 29 63 a0 49 d3 |...........)c.I.|
255 00e0: 87 bf ce fe 56 67 92 67 2c 69 d1 ec 39 00 00 00 |....Vg.g,i..9...|
386 00e0: 23 87 bf ce fe 56 67 92 67 2c 69 d1 ec 39 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|
387 00f0: 00 00 00 00 00 00 00 00 00 00 75 30 73 26 45 64 |..........u0s&Ed|
257 #endif
388 #endif
258 #if zstd rust no-dirstate-v2
389 #if zstd rust no-dirstate-v2
259 $ f --size --hex --bytes 256 body
390 $ f --size --hex --bytes 256 body
260 body: size=109431
391 body: size=115759
261 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
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.......|
393 0010: af 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|
394 0020: 06 09 04 0c 73 62 79 74 65 63 6f 75 6e 74 31 30 |....sbytecount10|
264 0030: 38 39 37 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |897filecount1030|
395 0030: 30 38 35 36 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0856filecount109|
265 0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote|
396 0040: 31 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |1requirementsdot|
266 0050: 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 25 |ncode%2Cfncache%|
397 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
267 0060: 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 32 |2Cgeneraldelta%2|
398 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
268 0070: 43 70 65 72 73 69 73 74 65 6e 74 2d 6e 6f 64 65 |Cpersistent-node|
399 0070: 32 43 70 65 72 73 69 73 74 65 6e 74 2d 6e 6f 64 |2Cpersistent-nod|
269 0080: 6d 61 70 25 32 43 72 65 76 6c 6f 67 2d 63 6f 6d |map%2Crevlog-com|
400 0080: 65 6d 61 70 25 32 43 72 65 76 6c 6f 67 2d 63 6f |emap%2Crevlog-co|
270 0090: 70 72 65 73 73 69 6f 6e 2d 7a 73 74 64 25 32 43 |pression-zstd%2C|
401 0090: 6d 70 72 65 73 73 69 6f 6e 2d 7a 73 74 64 25 32 |mpression-zstd%2|
271 00a0: 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 72 73 |revlogv1%2Cspars|
402 00a0: 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 72 |Crevlogv1%2Cspar|
272 00b0: 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 65 00 |erevlog%2Cstore.|
403 00b0: 73 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 65 |serevlog%2Cstore|
273 00c0: 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 00 03 |...s.Bdata/0.i..|
404 00c0: 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 00 |....s.Bdata/0.i.|
274 00d0: 00 01 00 00 00 00 00 00 00 02 00 00 00 01 00 00 |................|
405 00d0: 03 00 01 00 00 00 00 00 00 00 02 00 00 00 01 00 |................|
275 00e0: 00 00 00 00 00 01 ff ff ff ff ff ff ff ff 80 29 |...............)|
406 00e0: 00 00 00 00 00 00 01 ff ff ff ff ff ff ff ff 80 |................|
276 00f0: 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c 69 d1 |c.I.#....Vg.g,i.|
407 00f0: 29 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c 69 |)c.I.#....Vg.g,i|
277 #endif
408 #endif
278 #if zstd dirstate-v2
409 #if zstd dirstate-v2
279 $ f --size --hex --bytes 256 body
410 $ f --size --hex --bytes 256 body
@@ -301,20 +432,20 b' getbundle requests with stream=1 are unc'
301 #if stream-legacy
432 #if stream-legacy
302 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
433 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
303 streaming all changes
434 streaming all changes
304 1027 files to transfer, 96.3 KB of data (no-zstd !)
435 1088 files to transfer, 101 KB of data (no-zstd !)
305 transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !)
436 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
306 1027 files to transfer, 93.5 KB of data (zstd !)
437 1088 files to transfer, 98.4 KB of data (zstd !)
307 transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
438 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
308 searching for changes
439 searching for changes
309 no changes found
440 no changes found
310 #endif
441 #endif
311 #if stream-bundle2
442 #if stream-bundle2
312 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
443 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
313 streaming all changes
444 streaming all changes
314 1030 files to transfer, 96.5 KB of data (no-zstd !)
445 1091 files to transfer, 101 KB of data (no-zstd !)
315 transferred 96.5 KB in * seconds (* */sec) (glob) (no-zstd !)
446 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
316 1030 files to transfer, 93.6 KB of data (zstd !)
447 1091 files to transfer, 98.5 KB of data (zstd !)
317 transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !)
448 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
318 #endif
449 #endif
319
450
320 Clone with background file closing enabled
451 Clone with background file closing enabled
@@ -326,12 +457,12 b' Clone with background file closing enabl'
326 sending branchmap command
457 sending branchmap command
327 streaming all changes
458 streaming all changes
328 sending stream_out command
459 sending stream_out command
329 1027 files to transfer, 96.3 KB of data (no-zstd !)
460 1088 files to transfer, 101 KB of data (no-zstd !)
330 1027 files to transfer, 93.5 KB of data (zstd !)
461 1088 files to transfer, 98.4 KB of data (zstd !)
331 starting 4 threads for background file closing
462 starting 4 threads for background file closing
332 updating the branch cache
463 updating the branch cache
333 transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !)
464 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
334 transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
465 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
335 query 1; heads
466 query 1; heads
336 sending batch command
467 sending batch command
337 searching for changes
468 searching for changes
@@ -358,15 +489,15 b' Clone with background file closing enabl'
358 bundle2-input-bundle: with-transaction
489 bundle2-input-bundle: with-transaction
359 bundle2-input-part: "stream2" (params: 3 mandatory) supported
490 bundle2-input-part: "stream2" (params: 3 mandatory) supported
360 applying stream bundle
491 applying stream bundle
361 1030 files to transfer, 96.5 KB of data (no-zstd !)
492 1091 files to transfer, 101 KB of data (no-zstd !)
362 1030 files to transfer, 93.6 KB of data (zstd !)
493 1091 files to transfer, 98.5 KB of data (zstd !)
363 starting 4 threads for background file closing
494 starting 4 threads for background file closing
364 starting 4 threads for background file closing
495 starting 4 threads for background file closing
365 updating the branch cache
496 updating the branch cache
366 transferred 96.5 KB in * seconds (* */sec) (glob) (no-zstd !)
497 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
367 bundle2-input-part: total payload size 112094 (no-zstd !)
498 bundle2-input-part: total payload size 118382 (no-zstd !)
368 transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !)
499 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
369 bundle2-input-part: total payload size 109216 (zstd !)
500 bundle2-input-part: total payload size 115543 (zstd !)
370 bundle2-input-part: "listkeys" (params: 1 mandatory) supported
501 bundle2-input-part: "listkeys" (params: 1 mandatory) supported
371 bundle2-input-bundle: 2 parts total
502 bundle2-input-bundle: 2 parts total
372 checking for updated bookmarks
503 checking for updated bookmarks
@@ -383,8 +514,8 b' Cannot stream clone when there are secre'
383 adding changesets
514 adding changesets
384 adding manifests
515 adding manifests
385 adding file changes
516 adding file changes
386 added 1 changesets with 1 changes to 1 files
517 added 2 changesets with 1025 changes to 1025 files
387 new changesets 96ee1d7354c4
518 new changesets 96ee1d7354c4:c17445101a72
388
519
389 $ killdaemons.py
520 $ killdaemons.py
390
521
@@ -398,20 +529,20 b' Streaming of secrets can be overridden b'
398 #if stream-legacy
529 #if stream-legacy
399 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
530 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
400 streaming all changes
531 streaming all changes
401 1027 files to transfer, 96.3 KB of data (no-zstd !)
532 1088 files to transfer, 101 KB of data (no-zstd !)
402 transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !)
533 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
403 1027 files to transfer, 93.5 KB of data (zstd !)
534 1088 files to transfer, 98.4 KB of data (zstd !)
404 transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
535 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
405 searching for changes
536 searching for changes
406 no changes found
537 no changes found
407 #endif
538 #endif
408 #if stream-bundle2
539 #if stream-bundle2
409 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
540 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
410 streaming all changes
541 streaming all changes
411 1030 files to transfer, 96.5 KB of data (no-zstd !)
542 1091 files to transfer, 101 KB of data (no-zstd !)
412 transferred 96.5 KB in * seconds (* */sec) (glob) (no-zstd !)
543 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
413 1030 files to transfer, 93.6 KB of data (zstd !)
544 1091 files to transfer, 98.5 KB of data (zstd !)
414 transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !)
545 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
415 #endif
546 #endif
416
547
417 $ killdaemons.py
548 $ killdaemons.py
@@ -428,8 +559,8 b' Verify interaction between preferuncompr'
428 adding changesets
559 adding changesets
429 adding manifests
560 adding manifests
430 adding file changes
561 adding file changes
431 added 1 changesets with 1 changes to 1 files
562 added 2 changesets with 1025 changes to 1025 files
432 new changesets 96ee1d7354c4
563 new changesets 96ee1d7354c4:c17445101a72
433
564
434 $ killdaemons.py
565 $ killdaemons.py
435
566
@@ -458,8 +589,8 b" there is no security so it isn't importa"
458 adding changesets
589 adding changesets
459 adding manifests
590 adding manifests
460 adding file changes
591 adding file changes
461 added 1 changesets with 1 changes to 1 files
592 added 2 changesets with 1025 changes to 1025 files
462 new changesets 96ee1d7354c4
593 new changesets 96ee1d7354c4:c17445101a72
463
594
464 Stream clone while repo is changing:
595 Stream clone while repo is changing:
465
596
@@ -550,27 +681,33 b' clone it'
550 #if stream-legacy
681 #if stream-legacy
551 $ hg clone --stream http://localhost:$HGPORT with-bookmarks
682 $ hg clone --stream http://localhost:$HGPORT with-bookmarks
552 streaming all changes
683 streaming all changes
553 1027 files to transfer, 96.3 KB of data (no-zstd !)
684 1088 files to transfer, 101 KB of data (no-zstd !)
554 transferred 96.3 KB in * seconds (*) (glob) (no-zstd !)
685 transferred 101 KB in * seconds (*) (glob) (no-zstd !)
555 1027 files to transfer, 93.5 KB of data (zstd !)
686 1088 files to transfer, 98.4 KB of data (zstd !)
556 transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
687 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
557 searching for changes
688 searching for changes
558 no changes found
689 no changes found
559 updating to branch default
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 #endif
692 #endif
562 #if stream-bundle2
693 #if stream-bundle2
563 $ hg clone --stream http://localhost:$HGPORT with-bookmarks
694 $ hg clone --stream http://localhost:$HGPORT with-bookmarks
564 streaming all changes
695 streaming all changes
565 1033 files to transfer, 96.6 KB of data (no-zstd !)
696 1094 files to transfer, 101 KB of data (no-zstd !)
566 transferred 96.6 KB in * seconds (* */sec) (glob) (no-zstd !)
697 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
567 1033 files to transfer, 93.8 KB of data (zstd !)
698 1094 files to transfer, 98.7 KB of data (zstd !)
568 transferred 93.8 KB in * seconds (* */sec) (glob) (zstd !)
699 transferred 98.7 KB in * seconds (* */sec) (glob) (zstd !)
569 updating to branch default
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 #endif
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 $ hg -R with-bookmarks bookmarks
709 $ hg -R with-bookmarks bookmarks
573 some-bookmark 1:c17445101a72
710 some-bookmark 2:7406a3463c3d
574
711
575 Stream repository with phases
712 Stream repository with phases
576 -----------------------------
713 -----------------------------
@@ -580,32 +717,40 b' Clone as publishing'
580 $ hg -R server phase -r 'all()'
717 $ hg -R server phase -r 'all()'
581 0: draft
718 0: draft
582 1: draft
719 1: draft
720 2: draft
583
721
584 #if stream-legacy
722 #if stream-legacy
585 $ hg clone --stream http://localhost:$HGPORT phase-publish
723 $ hg clone --stream http://localhost:$HGPORT phase-publish
586 streaming all changes
724 streaming all changes
587 1027 files to transfer, 96.3 KB of data (no-zstd !)
725 1088 files to transfer, 101 KB of data (no-zstd !)
588 transferred 96.3 KB in * seconds (*) (glob) (no-zstd !)
726 transferred 101 KB in * seconds (*) (glob) (no-zstd !)
589 1027 files to transfer, 93.5 KB of data (zstd !)
727 1088 files to transfer, 98.4 KB of data (zstd !)
590 transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
728 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
591 searching for changes
729 searching for changes
592 no changes found
730 no changes found
593 updating to branch default
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 #endif
733 #endif
596 #if stream-bundle2
734 #if stream-bundle2
597 $ hg clone --stream http://localhost:$HGPORT phase-publish
735 $ hg clone --stream http://localhost:$HGPORT phase-publish
598 streaming all changes
736 streaming all changes
599 1033 files to transfer, 96.6 KB of data (no-zstd !)
737 1094 files to transfer, 101 KB of data (no-zstd !)
600 transferred 96.6 KB in * seconds (* */sec) (glob) (no-zstd !)
738 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
601 1033 files to transfer, 93.8 KB of data (zstd !)
739 1094 files to transfer, 98.7 KB of data (zstd !)
602 transferred 93.8 KB in * seconds (* */sec) (glob) (zstd !)
740 transferred 98.7 KB in * seconds (* */sec) (glob) (zstd !)
603 updating to branch default
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 #endif
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 $ hg -R phase-publish phase -r 'all()'
750 $ hg -R phase-publish phase -r 'all()'
607 0: public
751 0: public
608 1: public
752 1: public
753 2: public
609
754
610 Clone as non publishing
755 Clone as non publishing
611
756
@@ -624,31 +769,39 b' stream v1 unsuitable for non-publishing '
624
769
625 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
770 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
626 streaming all changes
771 streaming all changes
627 1027 files to transfer, 96.3 KB of data (no-zstd !)
772 1088 files to transfer, 101 KB of data (no-zstd !)
628 transferred 96.3 KB in * seconds (* */sec) (glob) (no-zstd !)
773 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
629 1027 files to transfer, 93.5 KB of data (zstd !)
774 1088 files to transfer, 98.4 KB of data (zstd !)
630 transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
775 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
631 searching for changes
776 searching for changes
632 no changes found
777 no changes found
633 updating to branch default
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 $ hg -R phase-no-publish phase -r 'all()'
780 $ hg -R phase-no-publish phase -r 'all()'
636 0: public
781 0: public
637 1: public
782 1: public
783 2: public
638 #endif
784 #endif
639 #if stream-bundle2
785 #if stream-bundle2
640 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
786 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
641 streaming all changes
787 streaming all changes
642 1034 files to transfer, 96.7 KB of data (no-zstd !)
788 1095 files to transfer, 101 KB of data (no-zstd !)
643 transferred 96.7 KB in * seconds (* */sec) (glob) (no-zstd !)
789 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
644 1034 files to transfer, 93.9 KB of data (zstd !)
790 1095 files to transfer, 98.7 KB of data (zstd !)
645 transferred 93.9 KB in * seconds (* */sec) (glob) (zstd !)
791 transferred 98.7 KB in * seconds (* */sec) (glob) (zstd !)
646 updating to branch default
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 $ hg -R phase-no-publish phase -r 'all()'
794 $ hg -R phase-no-publish phase -r 'all()'
649 0: draft
795 0: draft
650 1: draft
796 1: draft
797 2: draft
651 #endif
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 $ killdaemons.py
806 $ killdaemons.py
654
807
@@ -678,6 +831,7 b' Clone non-publishing with obsolescence'
678 obsoleted 1 changesets
831 obsoleted 1 changesets
679 $ hg up null -q
832 $ hg up null -q
680 $ hg log -T '{rev}: {phase}\n'
833 $ hg log -T '{rev}: {phase}\n'
834 2: draft
681 1: draft
835 1: draft
682 0: draft
836 0: draft
683 $ hg serve -p $HGPORT -d --pid-file=hg.pid
837 $ hg serve -p $HGPORT -d --pid-file=hg.pid
@@ -686,15 +840,22 b' Clone non-publishing with obsolescence'
686
840
687 $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence
841 $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence
688 streaming all changes
842 streaming all changes
689 1035 files to transfer, 97.1 KB of data (no-zstd !)
843 1096 files to transfer, 102 KB of data (no-zstd !)
690 transferred 97.1 KB in * seconds (* */sec) (glob) (no-zstd !)
844 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
691 1035 files to transfer, 94.3 KB of data (zstd !)
845 1096 files to transfer, 99.1 KB of data (zstd !)
692 transferred 94.3 KB in * seconds (* */sec) (glob) (zstd !)
846 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd !)
693 $ hg -R with-obsolescence log -T '{rev}: {phase}\n'
847 $ hg -R with-obsolescence log -T '{rev}: {phase}\n'
848 2: draft
694 1: draft
849 1: draft
695 0: draft
850 0: draft
696 $ hg debugobsolete -R with-obsolescence
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 $ hg clone -U --stream --config experimental.evolution=0 http://localhost:$HGPORT with-obsolescence-no-evolution
860 $ hg clone -U --stream --config experimental.evolution=0 http://localhost:$HGPORT with-obsolescence-no-evolution
700 streaming all changes
861 streaming all changes
@@ -997,7 +997,12 b' Performe the mix of clone and full refre'
997 $ hg -R test-repo/ debugupdatecache
997 $ hg -R test-repo/ debugupdatecache
998 $ touch $HG_TEST_STREAM_WALKED_FILE_2
998 $ touch $HG_TEST_STREAM_WALKED_FILE_2
999 $ $RUNTESTDIR/testlib/wait-on-file 10 $HG_TEST_STREAM_WALKED_FILE_3
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 $ cat clone-output-2
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 adding [s] 00manifest.n (62 bytes)
1006 adding [s] 00manifest.n (62 bytes)
1002 adding [s] 00manifest-*.nd (118 KB) (glob)
1007 adding [s] 00manifest-*.nd (118 KB) (glob)
1003 adding [s] 00changelog.n (62 bytes)
1008 adding [s] 00changelog.n (62 bytes)
General Comments 0
You need to be logged in to leave comments. Login now