193 revs in memory: 3 |
199 revs in memory: 3 |
194 #endif |
200 #endif |
195 |
201 |
196 #if reporevlogstore no-pure |
202 #if reporevlogstore no-pure |
197 $ hg debugdeltachain -m |
203 $ hg debugdeltachain -m |
198 rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio |
204 rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio readsize largestblk rddensity srchunks |
199 0 1 1 -1 base 44 43 44 1.02326 44 0 0.00000 |
205 0 1 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1 |
200 1 2 1 -1 base 0 0 0 0.00000 0 0 0.00000 |
206 1 2 1 -1 base 0 0 0 0.00000 0 0 0.00000 0 0 1.00000 1 |
201 2 3 1 -1 base 44 43 44 1.02326 44 0 0.00000 |
207 2 3 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1 |
202 |
208 |
203 $ hg debugdeltachain -m -T '{rev} {chainid} {chainlen}\n' |
209 $ hg debugdeltachain -m -T '{rev} {chainid} {chainlen}\n' |
204 0 1 1 |
210 0 1 1 |
205 1 2 1 |
211 1 2 1 |
206 2 3 1 |
212 2 3 1 |
207 |
|
208 $ hg debugdeltachain -m -Tjson |
|
209 [ |
|
210 { |
|
211 "chainid": 1, |
|
212 "chainlen": 1, |
|
213 "chainratio": 1.02325581395, (no-py3 !) |
|
214 "chainratio": 1.0232558139534884, (py3 !) |
|
215 "chainsize": 44, |
|
216 "compsize": 44, |
|
217 "deltatype": "base", |
|
218 "extradist": 0, |
|
219 "extraratio": 0.0, |
|
220 "lindist": 44, |
|
221 "prevrev": -1, |
|
222 "rev": 0, |
|
223 "uncompsize": 43 |
|
224 }, |
|
225 { |
|
226 "chainid": 2, |
|
227 "chainlen": 1, |
|
228 "chainratio": 0, |
|
229 "chainsize": 0, |
|
230 "compsize": 0, |
|
231 "deltatype": "base", |
|
232 "extradist": 0, |
|
233 "extraratio": 0, |
|
234 "lindist": 0, |
|
235 "prevrev": -1, |
|
236 "rev": 1, |
|
237 "uncompsize": 0 |
|
238 }, |
|
239 { |
|
240 "chainid": 3, |
|
241 "chainlen": 1, |
|
242 "chainratio": 1.02325581395, (no-py3 !) |
|
243 "chainratio": 1.0232558139534884, (py3 !) |
|
244 "chainsize": 44, |
|
245 "compsize": 44, |
|
246 "deltatype": "base", |
|
247 "extradist": 0, |
|
248 "extraratio": 0.0, |
|
249 "lindist": 44, |
|
250 "prevrev": -1, |
|
251 "rev": 2, |
|
252 "uncompsize": 43 |
|
253 } |
|
254 ] |
|
255 |
|
256 debugdelta chain with sparse read enabled |
|
257 |
|
258 $ cat >> $HGRCPATH <<EOF |
|
259 > [experimental] |
|
260 > sparse-read = True |
|
261 > EOF |
|
262 $ hg debugdeltachain -m |
|
263 rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio readsize largestblk rddensity srchunks |
|
264 0 1 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1 |
|
265 1 2 1 -1 base 0 0 0 0.00000 0 0 0.00000 0 0 1.00000 1 |
|
266 2 3 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1 |
|
267 |
|
268 $ hg debugdeltachain -m -T '{rev} {chainid} {chainlen} {readsize} {largestblock} {readdensity}\n' |
|
269 0 1 1 44 44 1.0 |
|
270 1 2 1 0 0 1 |
|
271 2 3 1 44 44 1.0 |
|
272 |
213 |
273 $ hg debugdeltachain -m -Tjson |
214 $ hg debugdeltachain -m -Tjson |
274 [ |
215 [ |
275 { |
216 { |
276 "chainid": 1, |
217 "chainid": 1, |
328 "srchunks": 1, |
269 "srchunks": 1, |
329 "uncompsize": 43 |
270 "uncompsize": 43 |
330 } |
271 } |
331 ] |
272 ] |
332 |
273 |
|
274 debugdelta chain with sparse read enabled |
|
275 |
|
276 $ cat >> $HGRCPATH <<EOF |
|
277 > [experimental] |
|
278 > sparse-read = True |
|
279 > EOF |
|
280 $ hg debugdeltachain -m |
|
281 rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio readsize largestblk rddensity srchunks |
|
282 0 1 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1 |
|
283 1 2 1 -1 base 0 0 0 0.00000 0 0 0.00000 0 0 1.00000 1 |
|
284 2 3 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1 |
|
285 |
|
286 $ hg debugdeltachain -m -T '{rev} {chainid} {chainlen} {readsize} {largestblock} {readdensity}\n' |
|
287 0 1 1 44 44 1.0 |
|
288 1 2 1 0 0 1 |
|
289 2 3 1 44 44 1.0 |
|
290 |
|
291 $ hg debugdeltachain -m -Tjson |
|
292 [ |
|
293 { |
|
294 "chainid": 1, |
|
295 "chainlen": 1, |
|
296 "chainratio": 1.02325581395, (no-py3 !) |
|
297 "chainratio": 1.0232558139534884, (py3 !) |
|
298 "chainsize": 44, |
|
299 "compsize": 44, |
|
300 "deltatype": "base", |
|
301 "extradist": 0, |
|
302 "extraratio": 0.0, |
|
303 "largestblock": 44, |
|
304 "lindist": 44, |
|
305 "prevrev": -1, |
|
306 "readdensity": 1.0, |
|
307 "readsize": 44, |
|
308 "rev": 0, |
|
309 "srchunks": 1, |
|
310 "uncompsize": 43 |
|
311 }, |
|
312 { |
|
313 "chainid": 2, |
|
314 "chainlen": 1, |
|
315 "chainratio": 0, |
|
316 "chainsize": 0, |
|
317 "compsize": 0, |
|
318 "deltatype": "base", |
|
319 "extradist": 0, |
|
320 "extraratio": 0, |
|
321 "largestblock": 0, |
|
322 "lindist": 0, |
|
323 "prevrev": -1, |
|
324 "readdensity": 1, |
|
325 "readsize": 0, |
|
326 "rev": 1, |
|
327 "srchunks": 1, |
|
328 "uncompsize": 0 |
|
329 }, |
|
330 { |
|
331 "chainid": 3, |
|
332 "chainlen": 1, |
|
333 "chainratio": 1.02325581395, (no-py3 !) |
|
334 "chainratio": 1.0232558139534884, (py3 !) |
|
335 "chainsize": 44, |
|
336 "compsize": 44, |
|
337 "deltatype": "base", |
|
338 "extradist": 0, |
|
339 "extraratio": 0.0, |
|
340 "largestblock": 44, |
|
341 "lindist": 44, |
|
342 "prevrev": -1, |
|
343 "readdensity": 1.0, |
|
344 "readsize": 44, |
|
345 "rev": 2, |
|
346 "srchunks": 1, |
|
347 "uncompsize": 43 |
|
348 } |
|
349 ] |
|
350 |
333 $ printf "This test checks things.\n" >> a |
351 $ printf "This test checks things.\n" >> a |
334 $ hg ci -m a |
352 $ hg ci -m a |
335 $ hg branch other |
353 $ hg branch other |
336 marked working directory as branch other |
354 marked working directory as branch other |
337 (branches are permanent and global, did you want a bookmark?) |
355 (branches are permanent and global, did you want a bookmark?) |
629 running "*" "*\tests/dummyssh" "user@dummy" "hg -R debugrevlog serve --stdio" (glob) (windows !) |
647 running "*" "*\tests/dummyssh" "user@dummy" "hg -R debugrevlog serve --stdio" (glob) (windows !) |
630 devel-peer-request: hello+between |
648 devel-peer-request: hello+between |
631 devel-peer-request: pairs: 81 bytes |
649 devel-peer-request: pairs: 81 bytes |
632 sending hello command |
650 sending hello command |
633 sending between command |
651 sending between command |
634 remote: 427 |
652 remote: 440 |
635 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
653 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
636 remote: 1 |
654 remote: 1 |
637 devel-peer-request: protocaps |
655 devel-peer-request: protocaps |
638 devel-peer-request: caps: * bytes (glob) |
656 devel-peer-request: caps: * bytes (glob) |
639 sending protocaps command |
657 sending protocaps command |
640 url: ssh://user@dummy/debugrevlog |
658 url: ssh://user@dummy/debugrevlog |