##// END OF EJS Templates
test: update test-sparse-revlog.t output...
marmoute -
r41962:2e92624c stable
parent child Browse files
Show More
@@ -1,1 +1,1
1 fe0d0bb5979de50f4fed71bb9437764d
1 403f5c247ad7cf58d3fad247a6b5e731
@@ -1,134 +1,134
1 ====================================
1 ====================================
2 Test delta choice with sparse revlog
2 Test delta choice with sparse revlog
3 ====================================
3 ====================================
4
4
5 Sparse-revlog usually shows the most gain on Manifest. However, it is simpler
5 Sparse-revlog usually shows the most gain on Manifest. However, it is simpler
6 to general an appropriate file, so we test with a single file instead. The
6 to general an appropriate file, so we test with a single file instead. The
7 goal is to observe intermediate snapshot being created.
7 goal is to observe intermediate snapshot being created.
8
8
9 We need a large enough file. Part of the content needs to be replaced
9 We need a large enough file. Part of the content needs to be replaced
10 repeatedly while some of it changes rarely.
10 repeatedly while some of it changes rarely.
11
11
12 $ bundlepath="$TESTDIR/artifacts/cache/big-file-churn.hg"
12 $ bundlepath="$TESTDIR/artifacts/cache/big-file-churn.hg"
13
13
14 $ expectedhash=`cat "$bundlepath".md5`
14 $ expectedhash=`cat "$bundlepath".md5`
15 $ if [ ! -f "$bundlepath" ]; then
15 $ if [ ! -f "$bundlepath" ]; then
16 > echo 'skipped: missing artifact, run "'"$TESTDIR"'/artifacts/scripts/generate-churning-bundle.py"'
16 > echo 'skipped: missing artifact, run "'"$TESTDIR"'/artifacts/scripts/generate-churning-bundle.py"'
17 > exit 80
17 > exit 80
18 > fi
18 > fi
19 $ currenthash=`f -M "$bundlepath" | cut -d = -f 2`
19 $ currenthash=`f -M "$bundlepath" | cut -d = -f 2`
20 $ if [ "$currenthash" != "$expectedhash" ]; then
20 $ if [ "$currenthash" != "$expectedhash" ]; then
21 > echo 'skipped: outdated artifact, md5 "'"$currenthash"'" expected "'"$expectedhash"'" run "'"$TESTDIR"'/artifacts/scripts/generate-churning-bundle.py"'
21 > echo 'skipped: outdated artifact, md5 "'"$currenthash"'" expected "'"$expectedhash"'" run "'"$TESTDIR"'/artifacts/scripts/generate-churning-bundle.py"'
22 > exit 80
22 > exit 80
23 > fi
23 > fi
24
24
25 $ cat >> $HGRCPATH << EOF
25 $ cat >> $HGRCPATH << EOF
26 > [format]
26 > [format]
27 > sparse-revlog = yes
27 > sparse-revlog = yes
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 > EOF
31 > EOF
32 $ hg init sparse-repo
32 $ hg init sparse-repo
33 $ cd sparse-repo
33 $ cd sparse-repo
34 $ hg unbundle $bundlepath
34 $ hg unbundle $bundlepath
35 adding changesets
35 adding changesets
36 adding manifests
36 adding manifests
37 adding file changes
37 adding file changes
38 added 5001 changesets with 5001 changes to 1 files (+89 heads)
38 added 5001 changesets with 5001 changes to 1 files (+89 heads)
39 new changesets 9706f5af64f4:d9032adc8114 (5001 drafts)
39 new changesets 9706f5af64f4:d9032adc8114 (5001 drafts)
40 (run 'hg heads' to see heads, 'hg merge' to merge)
40 (run 'hg heads' to see heads, 'hg merge' to merge)
41 $ hg up
41 $ hg up
42 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
42 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
43 updated to "d9032adc8114: commit #5000"
43 updated to "d9032adc8114: commit #5000"
44 89 other heads for branch "default"
44 89 other heads for branch "default"
45
45
46 $ hg log --stat -r 0:3
46 $ hg log --stat -r 0:3
47 changeset: 0:9706f5af64f4
47 changeset: 0:9706f5af64f4
48 user: test
48 user: test
49 date: Thu Jan 01 00:00:00 1970 +0000
49 date: Thu Jan 01 00:00:00 1970 +0000
50 summary: initial commit
50 summary: initial commit
51
51
52 SPARSE-REVLOG-TEST-FILE | 10500 ++++++++++++++++++++++++++++++++++++++++++++++
52 SPARSE-REVLOG-TEST-FILE | 10500 ++++++++++++++++++++++++++++++++++++++++++++++
53 1 files changed, 10500 insertions(+), 0 deletions(-)
53 1 files changed, 10500 insertions(+), 0 deletions(-)
54
54
55 changeset: 1:724907deaa5e
55 changeset: 1:724907deaa5e
56 user: test
56 user: test
57 date: Thu Jan 01 00:00:00 1970 +0000
57 date: Thu Jan 01 00:00:00 1970 +0000
58 summary: commit #1
58 summary: commit #1
59
59
60 SPARSE-REVLOG-TEST-FILE | 1068 +++++++++++++++++++++++-----------------------
60 SPARSE-REVLOG-TEST-FILE | 1068 +++++++++++++++++++++++-----------------------
61 1 files changed, 534 insertions(+), 534 deletions(-)
61 1 files changed, 534 insertions(+), 534 deletions(-)
62
62
63 changeset: 2:62c41bce3e5d
63 changeset: 2:62c41bce3e5d
64 user: test
64 user: test
65 date: Thu Jan 01 00:00:00 1970 +0000
65 date: Thu Jan 01 00:00:00 1970 +0000
66 summary: commit #2
66 summary: commit #2
67
67
68 SPARSE-REVLOG-TEST-FILE | 1068 +++++++++++++++++++++++-----------------------
68 SPARSE-REVLOG-TEST-FILE | 1068 +++++++++++++++++++++++-----------------------
69 1 files changed, 534 insertions(+), 534 deletions(-)
69 1 files changed, 534 insertions(+), 534 deletions(-)
70
70
71 changeset: 3:348a9cbd6959
71 changeset: 3:348a9cbd6959
72 user: test
72 user: test
73 date: Thu Jan 01 00:00:00 1970 +0000
73 date: Thu Jan 01 00:00:00 1970 +0000
74 summary: commit #3
74 summary: commit #3
75
75
76 SPARSE-REVLOG-TEST-FILE | 1068 +++++++++++++++++++++++-----------------------
76 SPARSE-REVLOG-TEST-FILE | 1068 +++++++++++++++++++++++-----------------------
77 1 files changed, 534 insertions(+), 534 deletions(-)
77 1 files changed, 534 insertions(+), 534 deletions(-)
78
78
79
79
80 $ f -s .hg/store/data/*.d
80 $ 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=63002924
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=65281524
82 $ hg debugrevlog *
82 $ hg debugrevlog *
83 format : 1
83 format : 1
84 flags : generaldelta
84 flags : generaldelta
85
85
86 revisions : 5001
86 revisions : 5001
87 merges : 625 (12.50%)
87 merges : 625 (12.50%)
88 normal : 4376 (87.50%)
88 normal : 4376 (87.50%)
89 revisions : 5001
89 revisions : 5001
90 empty : 0 ( 0.00%)
90 empty : 0 ( 0.00%)
91 text : 0 (100.00%)
91 text : 0 (100.00%)
92 delta : 0 (100.00%)
92 delta : 0 (100.00%)
93 snapshot : 374 ( 7.48%)
93 snapshot : 372 ( 7.44%)
94 lvl-0 : 4 ( 0.08%)
94 lvl-0 : 4 ( 0.08%)
95 lvl-1 : 23 ( 0.46%)
95 lvl-1 : 25 ( 0.50%)
96 lvl-2 : 63 ( 1.26%)
96 lvl-2 : 74 ( 1.48%)
97 lvl-3 : 118 ( 2.36%)
97 lvl-3 : 117 ( 2.34%)
98 lvl-4 : 166 ( 3.32%)
98 lvl-4 : 152 ( 3.04%)
99 deltas : 4627 (92.52%)
99 deltas : 4629 (92.56%)
100 revision size : 63002924
100 revision size : 65281524
101 snapshot : 9888099 (15.69%)
101 snapshot : 9910992 (15.18%)
102 lvl-0 : 804262 ( 1.28%)
102 lvl-0 : 804162 ( 1.23%)
103 lvl-1 : 1561380 ( 2.48%)
103 lvl-1 : 1816378 ( 2.78%)
104 lvl-2 : 2096696 ( 3.33%)
104 lvl-2 : 2355855 ( 3.61%)
105 lvl-3 : 2749539 ( 4.36%)
105 lvl-3 : 2557680 ( 3.92%)
106 lvl-4 : 2676222 ( 4.25%)
106 lvl-4 : 2376917 ( 3.64%)
107 deltas : 53114825 (84.31%)
107 deltas : 55370532 (84.82%)
108
108
109 chunks : 5001
109 chunks : 5001
110 0x78 (x) : 5001 (100.00%)
110 0x78 (x) : 5001 (100.00%)
111 chunks size : 63002924
111 chunks size : 65281524
112 0x78 (x) : 63002924 (100.00%)
112 0x78 (x) : 65281524 (100.00%)
113
113
114 avg chain length : 9
114 avg chain length : 9
115 max chain length : 15
115 max chain length : 15
116 max chain reach : 28907121
116 max chain reach : 27873839
117 compression ratio : 27
117 compression ratio : 26
118
118
119 uncompressed data size (min/max/avg) : 346468 / 346472 / 346471
119 uncompressed data size (min/max/avg) : 346468 / 346472 / 346471
120 full revision size (min/max/avg) : 201008 / 201141 / 201065
120 full revision size (min/max/avg) : 200973 / 201094 / 201040
121 inter-snapshot size (min/max/avg) : 11601 / 157413 / 24550
121 inter-snapshot size (min/max/avg) : 11586 / 170448 / 24746
122 level-1 (min/max/avg) : 13061 / 157413 / 67886
122 level-1 (min/max/avg) : 14021 / 170448 / 72655
123 level-2 (min/max/avg) : 11674 / 85631 / 33280
123 level-2 (min/max/avg) : 11616 / 81152 / 31835
124 level-3 (min/max/avg) : 11602 / 42957 / 23301
124 level-3 (min/max/avg) : 11607 / 42813 / 21860
125 level-4 (min/max/avg) : 11601 / 21475 / 16121
125 level-4 (min/max/avg) : 11586 / 21590 / 15637
126 delta size (min/max/avg) : 10649 / 105465 / 11479
126 delta size (min/max/avg) : 10649 / 166014 / 11961
127
127
128 deltas against prev : 3966 (85.71%)
128 deltas against prev : 3839 (82.93%)
129 where prev = p1 : 3922 (98.89%)
129 where prev = p1 : 3839 (100.00%)
130 where prev = p2 : 0 ( 0.00%)
130 where prev = p2 : 0 ( 0.00%)
131 other : 44 ( 1.11%)
131 other : 0 ( 0.00%)
132 deltas against p1 : 611 (13.21%)
132 deltas against p1 : 634 (13.70%)
133 deltas against p2 : 50 ( 1.08%)
133 deltas against p2 : 62 ( 1.34%)
134 deltas against other : 0 ( 0.00%)
134 deltas against other : 94 ( 2.03%)
General Comments 0
You need to be logged in to leave comments. Login now