Show More
@@ -118,7 +118,7 b' def run(target):' | |||||
118 | hg('merge', 'min(head())') |
|
118 | hg('merge', 'min(head())') | |
119 | updatefile(FILENAME, idx) |
|
119 | updatefile(FILENAME, idx) | |
120 | hg('commit', '--message', 'commit #%d' % idx) |
|
120 | hg('commit', '--message', 'commit #%d' % idx) | |
121 | hg('bundle', '--all', target) |
|
121 | hg('bundle', '--all', target, '--config', 'devel.bundle.delta=p1') | |
122 | with open(target, 'rb') as bundle: |
|
122 | with open(target, 'rb') as bundle: | |
123 | data = bundle.read() |
|
123 | data = bundle.read() | |
124 | digest = hashlib.md5(data).hexdigest() |
|
124 | digest = hashlib.md5(data).hexdigest() |
@@ -28,6 +28,8 b' repeatedly while some of it changes rare' | |||||
28 | > maxchainlen = 15 |
|
28 | > maxchainlen = 15 | |
29 | > [storage] |
|
29 | > [storage] | |
30 | > revlog.optimize-delta-parent-choice = yes |
|
30 | > revlog.optimize-delta-parent-choice = yes | |
|
31 | > [format] | |||
|
32 | > generaldelta = yes | |||
31 | > EOF |
|
33 | > EOF | |
32 | $ hg init sparse-repo |
|
34 | $ hg init sparse-repo | |
33 | $ cd sparse-repo |
|
35 | $ cd sparse-repo | |
@@ -78,7 +80,7 b' repeatedly while some of it changes rare' | |||||
78 |
|
80 | |||
79 |
|
81 | |||
80 | $ f -s .hg/store/data/*.d |
|
82 | $ f -s .hg/store/data/*.d | |
81 |
.hg/store/data/_s_p_a_r_s_e-_r_e_v_l_o_g-_t_e_s_t-_f_i_l_e.d: size=63 |
|
83 | .hg/store/data/_s_p_a_r_s_e-_r_e_v_l_o_g-_t_e_s_t-_f_i_l_e.d: size=63327412 | |
82 | $ hg debugrevlog * |
|
84 | $ hg debugrevlog * | |
83 | format : 1 |
|
85 | format : 1 | |
84 | flags : generaldelta |
|
86 | flags : generaldelta | |
@@ -90,45 +92,45 b' repeatedly while some of it changes rare' | |||||
90 | empty : 0 ( 0.00%) |
|
92 | empty : 0 ( 0.00%) | |
91 | text : 0 (100.00%) |
|
93 | text : 0 (100.00%) | |
92 | delta : 0 (100.00%) |
|
94 | delta : 0 (100.00%) | |
93 |
snapshot : 3 |
|
95 | snapshot : 383 ( 7.66%) | |
94 |
lvl-0 : |
|
96 | lvl-0 : 3 ( 0.06%) | |
95 |
lvl-1 : 2 |
|
97 | lvl-1 : 20 ( 0.40%) | |
96 |
lvl-2 : 6 |
|
98 | lvl-2 : 68 ( 1.36%) | |
97 |
lvl-3 : 11 |
|
99 | lvl-3 : 112 ( 2.24%) | |
98 |
lvl-4 : 1 |
|
100 | lvl-4 : 180 ( 3.60%) | |
99 |
deltas : 46 |
|
101 | deltas : 4618 (92.34%) | |
100 |
revision size : 63 |
|
102 | revision size : 63327412 | |
101 |
snapshot : 988 |
|
103 | snapshot : 9886710 (15.61%) | |
102 |
lvl-0 : |
|
104 | lvl-0 : 603104 ( 0.95%) | |
103 |
lvl-1 : 15 |
|
105 | lvl-1 : 1559991 ( 2.46%) | |
104 |
lvl-2 : 2 |
|
106 | lvl-2 : 2295592 ( 3.62%) | |
105 |
lvl-3 : 2 |
|
107 | lvl-3 : 2531199 ( 4.00%) | |
106 |
lvl-4 : 2 |
|
108 | lvl-4 : 2896824 ( 4.57%) | |
107 |
deltas : 53 |
|
109 | deltas : 53440702 (84.39%) | |
108 |
|
110 | |||
109 | chunks : 5001 |
|
111 | chunks : 5001 | |
110 | 0x78 (x) : 5001 (100.00%) |
|
112 | 0x78 (x) : 5001 (100.00%) | |
111 |
chunks size : 63 |
|
113 | chunks size : 63327412 | |
112 |
0x78 (x) : 63 |
|
114 | 0x78 (x) : 63327412 (100.00%) | |
113 |
|
115 | |||
114 | avg chain length : 9 |
|
116 | avg chain length : 9 | |
115 | max chain length : 15 |
|
117 | max chain length : 15 | |
116 |
max chain reach : 28 |
|
118 | max chain reach : 28248745 | |
117 | compression ratio : 27 |
|
119 | compression ratio : 27 | |
118 |
|
120 | |||
119 | uncompressed data size (min/max/avg) : 346468 / 346472 / 346471 |
|
121 | uncompressed data size (min/max/avg) : 346468 / 346472 / 346471 | |
120 |
full revision size (min/max/avg) : 201008 / 201 |
|
122 | full revision size (min/max/avg) : 201008 / 201050 / 201034 | |
121 |
inter-snapshot size (min/max/avg) : 116 |
|
123 | inter-snapshot size (min/max/avg) : 11596 / 168150 / 24430 | |
122 |
level-1 (min/max/avg) : 1 |
|
124 | level-1 (min/max/avg) : 16653 / 168150 / 77999 | |
123 |
level-2 (min/max/avg) : 11 |
|
125 | level-2 (min/max/avg) : 12951 / 85595 / 33758 | |
124 |
level-3 (min/max/avg) : 1160 |
|
126 | level-3 (min/max/avg) : 11608 / 43029 / 22599 | |
125 |
level-4 (min/max/avg) : 116 |
|
127 | level-4 (min/max/avg) : 11596 / 21632 / 16093 | |
126 |
delta size (min/max/avg) : 10649 / 10 |
|
128 | delta size (min/max/avg) : 10649 / 107163 / 11572 | |
127 |
|
129 | |||
128 |
deltas against prev : 39 |
|
130 | deltas against prev : 3910 (84.67%) | |
129 |
where prev = p1 : 39 |
|
131 | where prev = p1 : 3910 (100.00%) | |
130 | where prev = p2 : 0 ( 0.00%) |
|
132 | where prev = p2 : 0 ( 0.00%) | |
131 |
other : |
|
133 | other : 0 ( 0.00%) | |
132 |
deltas against p1 : 6 |
|
134 | deltas against p1 : 648 (14.03%) | |
133 |
deltas against p2 : |
|
135 | deltas against p2 : 60 ( 1.30%) | |
134 | deltas against other : 0 ( 0.00%) |
|
136 | deltas against other : 0 ( 0.00%) |
General Comments 0
You need to be logged in to leave comments.
Login now