Mercurial > hg
comparison tests/test-debugcommands.t @ 35059:5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
author | Paul Morelle <paul.morelle@octobus.net> |
---|---|
date | Thu, 26 Oct 2017 09:27:09 +0200 |
parents | 762ea8a1f5e7 |
children | 62e10bf001a9 |
comparison
equal
deleted
inserted
replaced
35058:a68c3420be41 | 35059:5cbbef8d2a57 |
---|---|
70 "deltatype": "base", | 70 "deltatype": "base", |
71 "extradist": 0, | 71 "extradist": 0, |
72 "extraratio": 0.0, | 72 "extraratio": 0.0, |
73 "lindist": 44, | 73 "lindist": 44, |
74 "prevrev": -1, | 74 "prevrev": -1, |
75 "rev": 0, | |
76 "uncompsize": 43 | |
77 } | |
78 ] | |
79 | |
80 debugdelta chain with sparse read enabled | |
81 | |
82 $ cat >> $HGRCPATH <<EOF | |
83 > [experimental] | |
84 > sparse-read = True | |
85 > EOF | |
86 $ hg debugdeltachain -m | |
87 rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio readsize largestblk rddensity | |
88 0 1 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 | |
89 | |
90 $ hg debugdeltachain -m -T '{rev} {chainid} {chainlen} {readsize} {largestblock} {readdensity}\n' | |
91 0 1 1 44 44 1.0 | |
92 | |
93 $ hg debugdeltachain -m -Tjson | |
94 [ | |
95 { | |
96 "chainid": 1, | |
97 "chainlen": 1, | |
98 "chainratio": 1.02325581395, | |
99 "chainsize": 44, | |
100 "compsize": 44, | |
101 "deltatype": "base", | |
102 "extradist": 0, | |
103 "extraratio": 0.0, | |
104 "largestblock": 44, | |
105 "lindist": 44, | |
106 "prevrev": -1, | |
107 "readdensity": 1.0, | |
108 "readsize": 44, | |
75 "rev": 0, | 109 "rev": 0, |
76 "uncompsize": 43 | 110 "uncompsize": 43 |
77 } | 111 } |
78 ] | 112 ] |
79 | 113 |