annotate tests/test-sparse-revlog.t @ 51448:89cd0dd41e4d stable

crecord: drop calls to `curses.endwin()` We got a bug report where `curses.endwin()` failed with `_curses.error: endwin() returned ERR`. Looking at e306d552dfb12, it seems like we should be able to just remove these calls.
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 29 Feb 2024 14:13:21 -0800
parents 670e68729aa7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
39491
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
1 ====================================
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
2 Test delta choice with sparse revlog
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
3 ====================================
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
4
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
5 Sparse-revlog usually shows the most gain on Manifest. However, it is simpler
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
6 to general an appropriate file, so we test with a single file instead. The
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
7 goal is to observe intermediate snapshot being created.
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
8
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
9 We need a large enough file. Part of the content needs to be replaced
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
10 repeatedly while some of it changes rarely.
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
11
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
12 $ bundlepath="$TESTDIR/artifacts/cache/big-file-churn.hg"
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
13
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
14 $ expectedhash=`cat "$bundlepath".md5`
41805
090a41251f09 test: generate the `test-sparse-revlog` artifact when slow-test is allowed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41794
diff changeset
15
090a41251f09 test: generate the `test-sparse-revlog` artifact when slow-test is allowed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41794
diff changeset
16 #if slow
090a41251f09 test: generate the `test-sparse-revlog` artifact when slow-test is allowed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41794
diff changeset
17
090a41251f09 test: generate the `test-sparse-revlog` artifact when slow-test is allowed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41794
diff changeset
18 $ if [ ! -f "$bundlepath" ]; then
090a41251f09 test: generate the `test-sparse-revlog` artifact when slow-test is allowed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41794
diff changeset
19 > "$TESTDIR"/artifacts/scripts/generate-churning-bundle.py > /dev/null
090a41251f09 test: generate the `test-sparse-revlog` artifact when slow-test is allowed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41794
diff changeset
20 > fi
090a41251f09 test: generate the `test-sparse-revlog` artifact when slow-test is allowed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41794
diff changeset
21
090a41251f09 test: generate the `test-sparse-revlog` artifact when slow-test is allowed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41794
diff changeset
22 #else
090a41251f09 test: generate the `test-sparse-revlog` artifact when slow-test is allowed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41794
diff changeset
23
39491
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
24 $ if [ ! -f "$bundlepath" ]; then
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
25 > echo 'skipped: missing artifact, run "'"$TESTDIR"'/artifacts/scripts/generate-churning-bundle.py"'
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
26 > exit 80
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
27 > fi
41805
090a41251f09 test: generate the `test-sparse-revlog` artifact when slow-test is allowed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41794
diff changeset
28
090a41251f09 test: generate the `test-sparse-revlog` artifact when slow-test is allowed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41794
diff changeset
29 #endif
090a41251f09 test: generate the `test-sparse-revlog` artifact when slow-test is allowed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41794
diff changeset
30
39491
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
31 $ currenthash=`f -M "$bundlepath" | cut -d = -f 2`
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
32 $ if [ "$currenthash" != "$expectedhash" ]; then
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
33 > echo 'skipped: outdated artifact, md5 "'"$currenthash"'" expected "'"$expectedhash"'" run "'"$TESTDIR"'/artifacts/scripts/generate-churning-bundle.py"'
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
34 > exit 80
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
35 > fi
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
36
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
37 $ cat >> $HGRCPATH << EOF
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
38 > [format]
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
39 > sparse-revlog = yes
39506
b66ea3fc3a86 sparse-revlog: set max delta chain length to on thousand
Boris Feld <boris.feld@octobus.net>
parents: 39505
diff changeset
40 > maxchainlen = 15
39491
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
41 > [storage]
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
42 > revlog.optimize-delta-parent-choice = yes
41819
688fc33e105d storage: introduce a `revlog.reuse-external-delta` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41818
diff changeset
43 > revlog.reuse-external-delta = no
39491
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
44 > EOF
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
45 $ hg init sparse-repo
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
46 $ cd sparse-repo
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
47 $ hg unbundle $bundlepath
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
48 adding changesets
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
49 adding manifests
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
50 adding file changes
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
51 added 5001 changesets with 5001 changes to 1 files (+89 heads)
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
52 new changesets 9706f5af64f4:d9032adc8114 (5001 drafts)
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
53 (run 'hg heads' to see heads, 'hg merge' to merge)
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
54 $ hg up
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
55 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
56 updated to "d9032adc8114: commit #5000"
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
57 89 other heads for branch "default"
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
58
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
59 $ hg log --stat -r 0:3
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
60 changeset: 0:9706f5af64f4
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
61 user: test
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
62 date: Thu Jan 01 00:00:00 1970 +0000
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
63 summary: initial commit
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
64
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
65 SPARSE-REVLOG-TEST-FILE | 10500 ++++++++++++++++++++++++++++++++++++++++++++++
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
66 1 files changed, 10500 insertions(+), 0 deletions(-)
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
67
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
68 changeset: 1:724907deaa5e
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
69 user: test
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
70 date: Thu Jan 01 00:00:00 1970 +0000
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
71 summary: commit #1
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
72
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
73 SPARSE-REVLOG-TEST-FILE | 1068 +++++++++++++++++++++++-----------------------
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
74 1 files changed, 534 insertions(+), 534 deletions(-)
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
75
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
76 changeset: 2:62c41bce3e5d
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
77 user: test
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
78 date: Thu Jan 01 00:00:00 1970 +0000
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
79 summary: commit #2
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
80
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
81 SPARSE-REVLOG-TEST-FILE | 1068 +++++++++++++++++++++++-----------------------
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
82 1 files changed, 534 insertions(+), 534 deletions(-)
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
83
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
84 changeset: 3:348a9cbd6959
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
85 user: test
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
86 date: Thu Jan 01 00:00:00 1970 +0000
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
87 summary: commit #3
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
88
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
89 SPARSE-REVLOG-TEST-FILE | 1068 +++++++++++++++++++++++-----------------------
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
90 1 files changed, 534 insertions(+), 534 deletions(-)
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
91
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
92
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
93 $ f -s .hg/store/data/*.d
49225
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
94 .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=58616973
39491
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
95 $ hg debugrevlog *
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
96 format : 1
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
97 flags : generaldelta
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
98
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
99 revisions : 5001
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
100 merges : 625 (12.50%)
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
101 normal : 4376 (87.50%)
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
102 revisions : 5001
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
103 empty : 0 ( 0.00%)
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
104 text : 0 (100.00%)
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
105 delta : 0 (100.00%)
41794
c59987ab96b4 test: don't trust delta bases from the bundle in test-sparse-revlog.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41793
diff changeset
106 snapshot : 383 ( 7.66%)
c59987ab96b4 test: don't trust delta bases from the bundle in test-sparse-revlog.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41793
diff changeset
107 lvl-0 : 3 ( 0.06%)
49661
511106bcb16c debug-revlog: details about non-ancestors delta-bases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49623
diff changeset
108 lvl-1 : 18 ( 0.36%) non-ancestor-bases: 9 (50.00%)
511106bcb16c debug-revlog: details about non-ancestors delta-bases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49623
diff changeset
109 lvl-2 : 62 ( 1.24%) non-ancestor-bases: 58 (93.55%)
511106bcb16c debug-revlog: details about non-ancestors delta-bases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49623
diff changeset
110 lvl-3 : 108 ( 2.16%) non-ancestor-bases: 108 (100.00%)
511106bcb16c debug-revlog: details about non-ancestors delta-bases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49623
diff changeset
111 lvl-4 : 191 ( 3.82%) non-ancestor-bases: 180 (94.24%)
511106bcb16c debug-revlog: details about non-ancestors delta-bases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49623
diff changeset
112 lvl-5 : 1 ( 0.02%) non-ancestor-bases: 1 (100.00%)
41794
c59987ab96b4 test: don't trust delta bases from the bundle in test-sparse-revlog.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41793
diff changeset
113 deltas : 4618 (92.34%)
49225
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
114 revision size : 58616973
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
115 snapshot : 9247844 (15.78%)
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
116 lvl-0 : 539532 ( 0.92%)
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
117 lvl-1 : 1467743 ( 2.50%)
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
118 lvl-2 : 1873820 ( 3.20%)
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
119 lvl-3 : 2326874 ( 3.97%)
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
120 lvl-4 : 3029118 ( 5.17%)
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
121 lvl-5 : 10757 ( 0.02%)
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
122 deltas : 49369129 (84.22%)
39491
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
123
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
124 chunks : 5001
49225
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
125 0x28 : 5001 (100.00%)
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
126 chunks size : 58616973
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
127 0x28 : 58616973 (100.00%)
39491
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
128
49662
7aea9babac5d debugrevlog: display total stored information
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49661
diff changeset
129
7aea9babac5d debugrevlog: display total stored information
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49661
diff changeset
130 total-stored-content: 1 732 705 361 bytes
7aea9babac5d debugrevlog: display total stored information
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49661
diff changeset
131
39506
b66ea3fc3a86 sparse-revlog: set max delta chain length to on thousand
Boris Feld <boris.feld@octobus.net>
parents: 39505
diff changeset
132 avg chain length : 9
b66ea3fc3a86 sparse-revlog: set max delta chain length to on thousand
Boris Feld <boris.feld@octobus.net>
parents: 39505
diff changeset
133 max chain length : 15
49225
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
134 max chain reach : 27366701
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
135 compression ratio : 29
39491
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
136
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
137 uncompressed data size (min/max/avg) : 346468 / 346472 / 346471
49225
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
138 full revision size (min/max/avg) : 179288 / 180786 / 179844
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
139 inter-snapshot size (min/max/avg) : 10757 / 169507 / 22916
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
140 level-1 (min/max/avg) : 13905 / 169507 / 81541
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
141 level-2 (min/max/avg) : 10887 / 83873 / 30222
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
142 level-3 (min/max/avg) : 10911 / 43047 / 21545
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
143 level-4 (min/max/avg) : 10838 / 21390 / 15859
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
144 level-5 (min/max/avg) : 10757 / 10757 / 10757
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
145 delta size (min/max/avg) : 9672 / 108072 / 10690
39491
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
146
49225
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
147 deltas against prev : 3906 (84.58%)
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
148 where prev = p1 : 3906 (100.00%)
39491
4ca7a67c94c8 sparse-revlog: add a test checking revlog deltas for a churning file
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
149 where prev = p2 : 0 ( 0.00%)
49661
511106bcb16c debug-revlog: details about non-ancestors delta-bases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49623
diff changeset
150 other-ancestor : 0 ( 0.00%)
511106bcb16c debug-revlog: details about non-ancestors delta-bases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49623
diff changeset
151 unrelated : 0 ( 0.00%)
49225
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
152 deltas against p1 : 649 (14.05%)
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
153 deltas against p2 : 63 ( 1.36%)
49661
511106bcb16c debug-revlog: details about non-ancestors delta-bases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49623
diff changeset
154 deltas against ancs : 0 ( 0.00%)
41794
c59987ab96b4 test: don't trust delta bases from the bundle in test-sparse-revlog.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41793
diff changeset
155 deltas against other : 0 ( 0.00%)
49225
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
156
49228
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
157
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
158 Test `debug-delta-find`
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
159 -----------------------
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
160
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
161 $ ls -1
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
162 SPARSE-REVLOG-TEST-FILE
49353
fa8d974284f8 test: fix test-sparse-revlog output after debugdeltachain change
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49228
diff changeset
163 $ hg debugdeltachain SPARSE-REVLOG-TEST-FILE | grep snap | tail -1
51076
786b6225793a debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49662
diff changeset
164 4971 4970 -1 3 5 4930 snap
49228
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
165 $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
166 DBG-DELTAS-SEARCH: SEARCH rev=4971
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
167 DBG-DELTAS-SEARCH: ROUND #1 - 3 candidates - search-down
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
168 DBG-DELTAS-SEARCH: CANDIDATE: rev=4329
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
169 DBG-DELTAS-SEARCH: type=snapshot-4
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
170 DBG-DELTAS-SEARCH: size=13781
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
171 DBG-DELTAS-SEARCH: base=4325
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
172 DBG-DELTAS-SEARCH: uncompressed-delta-size=173765
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
173 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
174 DBG-DELTAS-SEARCH: DELTA: length=106516 (BAD)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
175 DBG-DELTAS-SEARCH: CANDIDATE: rev=4335
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
176 DBG-DELTAS-SEARCH: type=snapshot-4
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
177 DBG-DELTAS-SEARCH: size=14385
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
178 DBG-DELTAS-SEARCH: base=4325
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
179 DBG-DELTAS-SEARCH: uncompressed-delta-size=171587
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
180 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
181 DBG-DELTAS-SEARCH: DELTA: length=105187 (BAD)
49228
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
182 DBG-DELTAS-SEARCH: CANDIDATE: rev=4962
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
183 DBG-DELTAS-SEARCH: type=snapshot-4
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
184 DBG-DELTAS-SEARCH: size=18296
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
185 DBG-DELTAS-SEARCH: base=4930
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
186 DBG-DELTAS-SEARCH: uncompressed-delta-size=30377
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
187 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
188 DBG-DELTAS-SEARCH: DELTA: length=16872 (BAD)
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
189 DBG-DELTAS-SEARCH: ROUND #2 - 2 candidates - search-down
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
190 DBG-DELTAS-SEARCH: CANDIDATE: rev=4325
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
191 DBG-DELTAS-SEARCH: type=snapshot-3
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
192 DBG-DELTAS-SEARCH: size=17384
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
193 DBG-DELTAS-SEARCH: base=4318
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
194 DBG-DELTAS-SEARCH: uncompressed-delta-size=178121
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
195 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
196 DBG-DELTAS-SEARCH: DELTA: length=109064 (BAD)
49228
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
197 DBG-DELTAS-SEARCH: CANDIDATE: rev=4930
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
198 DBG-DELTAS-SEARCH: type=snapshot-3
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
199 DBG-DELTAS-SEARCH: size=39228
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
200 DBG-DELTAS-SEARCH: base=4799
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
201 DBG-DELTAS-SEARCH: uncompressed-delta-size=33050
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
202 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
203 DBG-DELTAS-SEARCH: DELTA: length=19179 (GOOD)
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
204 DBG-DELTAS-SEARCH: ROUND #3 - 1 candidates - refine-down
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
205 DBG-DELTAS-SEARCH: CONTENDER: rev=4930 - length=19179
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
206 DBG-DELTAS-SEARCH: CANDIDATE: rev=4799
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
207 DBG-DELTAS-SEARCH: type=snapshot-2
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
208 DBG-DELTAS-SEARCH: size=50213
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
209 DBG-DELTAS-SEARCH: base=4623
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
210 DBG-DELTAS-SEARCH: uncompressed-delta-size=82661
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
211 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
212 DBG-DELTAS-SEARCH: DELTA: length=49132 (BAD)
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
213 DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: delta-base=4930 is-cached=0 - search-rounds=3 try-count=6 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
49228
b909dd35d9ab deltas: add a debug-delta-find command to analyse delta search
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49225
diff changeset
214
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
215 $ cat << EOF >>.hg/hgrc
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
216 > [storage]
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
217 > revlog.optimize-delta-parent-choice = no
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
218 > revlog.reuse-external-delta = yes
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
219 > EOF
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
220
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
221 $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --quiet
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
222 DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: delta-base=4930 is-cached=0 - search-rounds=3 try-count=6 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
223 $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --source full
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
224 DBG-DELTAS-SEARCH: SEARCH rev=4971
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
225 DBG-DELTAS-SEARCH: ROUND #1 - 3 candidates - search-down
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
226 DBG-DELTAS-SEARCH: CANDIDATE: rev=4329
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
227 DBG-DELTAS-SEARCH: type=snapshot-4
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
228 DBG-DELTAS-SEARCH: size=13781
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
229 DBG-DELTAS-SEARCH: base=4325
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
230 DBG-DELTAS-SEARCH: uncompressed-delta-size=173765
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
231 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
232 DBG-DELTAS-SEARCH: DELTA: length=106516 (BAD)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
233 DBG-DELTAS-SEARCH: CANDIDATE: rev=4335
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
234 DBG-DELTAS-SEARCH: type=snapshot-4
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
235 DBG-DELTAS-SEARCH: size=14385
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
236 DBG-DELTAS-SEARCH: base=4325
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
237 DBG-DELTAS-SEARCH: uncompressed-delta-size=171587
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
238 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
239 DBG-DELTAS-SEARCH: DELTA: length=105187 (BAD)
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
240 DBG-DELTAS-SEARCH: CANDIDATE: rev=4962
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
241 DBG-DELTAS-SEARCH: type=snapshot-4
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
242 DBG-DELTAS-SEARCH: size=18296
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
243 DBG-DELTAS-SEARCH: base=4930
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
244 DBG-DELTAS-SEARCH: uncompressed-delta-size=30377
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
245 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
246 DBG-DELTAS-SEARCH: DELTA: length=16872 (BAD)
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
247 DBG-DELTAS-SEARCH: ROUND #2 - 2 candidates - search-down
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
248 DBG-DELTAS-SEARCH: CANDIDATE: rev=4325
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
249 DBG-DELTAS-SEARCH: type=snapshot-3
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
250 DBG-DELTAS-SEARCH: size=17384
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
251 DBG-DELTAS-SEARCH: base=4318
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
252 DBG-DELTAS-SEARCH: uncompressed-delta-size=178121
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
253 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
254 DBG-DELTAS-SEARCH: DELTA: length=109064 (BAD)
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
255 DBG-DELTAS-SEARCH: CANDIDATE: rev=4930
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
256 DBG-DELTAS-SEARCH: type=snapshot-3
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
257 DBG-DELTAS-SEARCH: size=39228
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
258 DBG-DELTAS-SEARCH: base=4799
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
259 DBG-DELTAS-SEARCH: uncompressed-delta-size=33050
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
260 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
261 DBG-DELTAS-SEARCH: DELTA: length=19179 (GOOD)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
262 DBG-DELTAS-SEARCH: ROUND #3 - 1 candidates - refine-down
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
263 DBG-DELTAS-SEARCH: CONTENDER: rev=4930 - length=19179
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
264 DBG-DELTAS-SEARCH: CANDIDATE: rev=4799
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
265 DBG-DELTAS-SEARCH: type=snapshot-2
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
266 DBG-DELTAS-SEARCH: size=50213
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
267 DBG-DELTAS-SEARCH: base=4623
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
268 DBG-DELTAS-SEARCH: uncompressed-delta-size=82661
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
269 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
270 DBG-DELTAS-SEARCH: DELTA: length=49132 (BAD)
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
271 DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: delta-base=4930 is-cached=0 - search-rounds=3 try-count=6 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
272 $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --source storage
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
273 DBG-DELTAS-SEARCH: SEARCH rev=4971
49608
78ba41878f2e delta-find: add debug information about reuse of cached data
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49589
diff changeset
274 DBG-DELTAS-SEARCH: ROUND #1 - 1 candidates - cached-delta
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
275 DBG-DELTAS-SEARCH: CANDIDATE: rev=4930
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
276 DBG-DELTAS-SEARCH: type=snapshot-3
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
277 DBG-DELTAS-SEARCH: size=39228
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
278 DBG-DELTAS-SEARCH: base=4799
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
279 DBG-DELTAS-SEARCH: uncompressed-delta-size=33050
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
280 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
281 DBG-DELTAS-SEARCH: DELTA: length=19179 (GOOD)
51350
670e68729aa7 delta-find: stop using heuristic to determine if we are creating a snapshot
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51332
diff changeset
282 DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: delta-base=4930 is-cached=1 - search-rounds=1 try-count=1 - delta-type=delta snap-depth=-1 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
283 $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --source p1
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
284 DBG-DELTAS-SEARCH: SEARCH rev=4971
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
285 DBG-DELTAS-SEARCH: ROUND #1 - 3 candidates - search-down
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
286 DBG-DELTAS-SEARCH: CANDIDATE: rev=4329
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
287 DBG-DELTAS-SEARCH: type=snapshot-4
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
288 DBG-DELTAS-SEARCH: size=13781
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
289 DBG-DELTAS-SEARCH: base=4325
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
290 DBG-DELTAS-SEARCH: uncompressed-delta-size=173765
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
291 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
292 DBG-DELTAS-SEARCH: DELTA: length=106516 (BAD)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
293 DBG-DELTAS-SEARCH: CANDIDATE: rev=4335
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
294 DBG-DELTAS-SEARCH: type=snapshot-4
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
295 DBG-DELTAS-SEARCH: size=14385
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
296 DBG-DELTAS-SEARCH: base=4325
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
297 DBG-DELTAS-SEARCH: uncompressed-delta-size=171587
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
298 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
299 DBG-DELTAS-SEARCH: DELTA: length=105187 (BAD)
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
300 DBG-DELTAS-SEARCH: CANDIDATE: rev=4962
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
301 DBG-DELTAS-SEARCH: type=snapshot-4
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
302 DBG-DELTAS-SEARCH: size=18296
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
303 DBG-DELTAS-SEARCH: base=4930
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
304 DBG-DELTAS-SEARCH: uncompressed-delta-size=30377
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
305 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
306 DBG-DELTAS-SEARCH: DELTA: length=16872 (BAD)
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
307 DBG-DELTAS-SEARCH: ROUND #2 - 2 candidates - search-down
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
308 DBG-DELTAS-SEARCH: CANDIDATE: rev=4325
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
309 DBG-DELTAS-SEARCH: type=snapshot-3
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
310 DBG-DELTAS-SEARCH: size=17384
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
311 DBG-DELTAS-SEARCH: base=4318
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
312 DBG-DELTAS-SEARCH: uncompressed-delta-size=178121
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
313 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
314 DBG-DELTAS-SEARCH: DELTA: length=109064 (BAD)
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
315 DBG-DELTAS-SEARCH: CANDIDATE: rev=4930
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
316 DBG-DELTAS-SEARCH: type=snapshot-3
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
317 DBG-DELTAS-SEARCH: size=39228
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
318 DBG-DELTAS-SEARCH: base=4799
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
319 DBG-DELTAS-SEARCH: uncompressed-delta-size=33050
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
320 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
321 DBG-DELTAS-SEARCH: DELTA: length=19179 (GOOD)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
322 DBG-DELTAS-SEARCH: ROUND #3 - 1 candidates - refine-down
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
323 DBG-DELTAS-SEARCH: CONTENDER: rev=4930 - length=19179
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
324 DBG-DELTAS-SEARCH: CANDIDATE: rev=4799
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
325 DBG-DELTAS-SEARCH: type=snapshot-2
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
326 DBG-DELTAS-SEARCH: size=50213
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
327 DBG-DELTAS-SEARCH: base=4623
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
328 DBG-DELTAS-SEARCH: uncompressed-delta-size=82661
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
329 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
330 DBG-DELTAS-SEARCH: DELTA: length=49132 (BAD)
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
331 DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: delta-base=4930 is-cached=0 - search-rounds=3 try-count=6 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
332 $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --source p2
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
333 DBG-DELTAS-SEARCH: SEARCH rev=4971
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
334 DBG-DELTAS-SEARCH: ROUND #1 - 3 candidates - search-down
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
335 DBG-DELTAS-SEARCH: CANDIDATE: rev=4329
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
336 DBG-DELTAS-SEARCH: type=snapshot-4
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
337 DBG-DELTAS-SEARCH: size=13781
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
338 DBG-DELTAS-SEARCH: base=4325
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
339 DBG-DELTAS-SEARCH: uncompressed-delta-size=173765
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
340 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
341 DBG-DELTAS-SEARCH: DELTA: length=106516 (BAD)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
342 DBG-DELTAS-SEARCH: CANDIDATE: rev=4335
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
343 DBG-DELTAS-SEARCH: type=snapshot-4
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
344 DBG-DELTAS-SEARCH: size=14385
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
345 DBG-DELTAS-SEARCH: base=4325
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
346 DBG-DELTAS-SEARCH: uncompressed-delta-size=171587
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
347 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
348 DBG-DELTAS-SEARCH: DELTA: length=105187 (BAD)
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
349 DBG-DELTAS-SEARCH: CANDIDATE: rev=4962
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
350 DBG-DELTAS-SEARCH: type=snapshot-4
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
351 DBG-DELTAS-SEARCH: size=18296
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
352 DBG-DELTAS-SEARCH: base=4930
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
353 DBG-DELTAS-SEARCH: uncompressed-delta-size=30377
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
354 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
355 DBG-DELTAS-SEARCH: DELTA: length=16872 (BAD)
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
356 DBG-DELTAS-SEARCH: ROUND #2 - 2 candidates - search-down
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
357 DBG-DELTAS-SEARCH: CANDIDATE: rev=4325
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
358 DBG-DELTAS-SEARCH: type=snapshot-3
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
359 DBG-DELTAS-SEARCH: size=17384
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
360 DBG-DELTAS-SEARCH: base=4318
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
361 DBG-DELTAS-SEARCH: uncompressed-delta-size=178121
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
362 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
363 DBG-DELTAS-SEARCH: DELTA: length=109064 (BAD)
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
364 DBG-DELTAS-SEARCH: CANDIDATE: rev=4930
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
365 DBG-DELTAS-SEARCH: type=snapshot-3
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
366 DBG-DELTAS-SEARCH: size=39228
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
367 DBG-DELTAS-SEARCH: base=4799
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
368 DBG-DELTAS-SEARCH: uncompressed-delta-size=33050
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
369 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
370 DBG-DELTAS-SEARCH: DELTA: length=19179 (GOOD)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
371 DBG-DELTAS-SEARCH: ROUND #3 - 1 candidates - refine-down
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
372 DBG-DELTAS-SEARCH: CONTENDER: rev=4930 - length=19179
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
373 DBG-DELTAS-SEARCH: CANDIDATE: rev=4799
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
374 DBG-DELTAS-SEARCH: type=snapshot-2
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
375 DBG-DELTAS-SEARCH: size=50213
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
376 DBG-DELTAS-SEARCH: base=4623
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
377 DBG-DELTAS-SEARCH: uncompressed-delta-size=82661
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
378 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
379 DBG-DELTAS-SEARCH: DELTA: length=49132 (BAD)
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
380 DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: delta-base=4930 is-cached=0 - search-rounds=3 try-count=6 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
381 $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --source prev
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
382 DBG-DELTAS-SEARCH: SEARCH rev=4971
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
383 DBG-DELTAS-SEARCH: ROUND #1 - 3 candidates - search-down
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
384 DBG-DELTAS-SEARCH: CANDIDATE: rev=4329
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
385 DBG-DELTAS-SEARCH: type=snapshot-4
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
386 DBG-DELTAS-SEARCH: size=13781
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
387 DBG-DELTAS-SEARCH: base=4325
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
388 DBG-DELTAS-SEARCH: uncompressed-delta-size=173765
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
389 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
390 DBG-DELTAS-SEARCH: DELTA: length=106516 (BAD)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
391 DBG-DELTAS-SEARCH: CANDIDATE: rev=4335
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
392 DBG-DELTAS-SEARCH: type=snapshot-4
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
393 DBG-DELTAS-SEARCH: size=14385
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
394 DBG-DELTAS-SEARCH: base=4325
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
395 DBG-DELTAS-SEARCH: uncompressed-delta-size=171587
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
396 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
397 DBG-DELTAS-SEARCH: DELTA: length=105187 (BAD)
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
398 DBG-DELTAS-SEARCH: CANDIDATE: rev=4962
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
399 DBG-DELTAS-SEARCH: type=snapshot-4
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
400 DBG-DELTAS-SEARCH: size=18296
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
401 DBG-DELTAS-SEARCH: base=4930
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
402 DBG-DELTAS-SEARCH: uncompressed-delta-size=30377
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
403 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
404 DBG-DELTAS-SEARCH: DELTA: length=16872 (BAD)
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
405 DBG-DELTAS-SEARCH: ROUND #2 - 2 candidates - search-down
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
406 DBG-DELTAS-SEARCH: CANDIDATE: rev=4325
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
407 DBG-DELTAS-SEARCH: type=snapshot-3
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
408 DBG-DELTAS-SEARCH: size=17384
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
409 DBG-DELTAS-SEARCH: base=4318
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
410 DBG-DELTAS-SEARCH: uncompressed-delta-size=178121
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
411 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
412 DBG-DELTAS-SEARCH: DELTA: length=109064 (BAD)
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
413 DBG-DELTAS-SEARCH: CANDIDATE: rev=4930
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
414 DBG-DELTAS-SEARCH: type=snapshot-3
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
415 DBG-DELTAS-SEARCH: size=39228
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
416 DBG-DELTAS-SEARCH: base=4799
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
417 DBG-DELTAS-SEARCH: uncompressed-delta-size=33050
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
418 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
419 DBG-DELTAS-SEARCH: DELTA: length=19179 (GOOD)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
420 DBG-DELTAS-SEARCH: ROUND #3 - 1 candidates - refine-down
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
421 DBG-DELTAS-SEARCH: CONTENDER: rev=4930 - length=19179
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
422 DBG-DELTAS-SEARCH: CANDIDATE: rev=4799
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
423 DBG-DELTAS-SEARCH: type=snapshot-2
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
424 DBG-DELTAS-SEARCH: size=50213
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
425 DBG-DELTAS-SEARCH: base=4623
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
426 DBG-DELTAS-SEARCH: uncompressed-delta-size=82661
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
427 DBG-DELTAS-SEARCH: delta-search-time=* (glob)
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
428 DBG-DELTAS-SEARCH: DELTA: length=49132 (BAD)
51332
2e169a222e63 delta-find: fix the computation of the `prev` value
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51076
diff changeset
429 DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: delta-base=4930 is-cached=0 - search-rounds=3 try-count=6 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
49589
266bb5c86f4b debug-delta-find: add a --source option
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 49353
diff changeset
430
49225
58a814d062ca test: update `test-sparse-revlog` output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41819
diff changeset
431 $ cd ..