Mercurial > hg
comparison tests/test-sparse-revlog.t @ 49228:b909dd35d9ab
deltas: add a debug-delta-find command to analyse delta search
See command documentation for details.
For some reason, pytype is confused by our usage of None/deltainfo variable, so
I had to quiet it.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 20 May 2022 14:27:46 +0200 |
parents | 58a814d062ca |
children | fa8d974284f8 |
comparison
equal
deleted
inserted
replaced
49227:2bcf5e14bb7e | 49228:b909dd35d9ab |
---|---|
147 other : 0 ( 0.00%) | 147 other : 0 ( 0.00%) |
148 deltas against p1 : 649 (14.05%) | 148 deltas against p1 : 649 (14.05%) |
149 deltas against p2 : 63 ( 1.36%) | 149 deltas against p2 : 63 ( 1.36%) |
150 deltas against other : 0 ( 0.00%) | 150 deltas against other : 0 ( 0.00%) |
151 | 151 |
152 | |
153 Test `debug-delta-find` | |
154 ----------------------- | |
155 | |
156 $ ls -1 | |
157 SPARSE-REVLOG-TEST-FILE | |
158 $ hg debugdeltachain SPARSE-REVLOG-TEST-FILE | grep other | tail -1 | |
159 4971 3 5 4930 other 19179 346472 427596 1.23414 15994877 15567281 36.40652 427596 179288 1.00000 5 | |
160 $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 | |
161 DBG-DELTAS-SEARCH: SEARCH rev=4971 | |
162 DBG-DELTAS-SEARCH: ROUND #1 - 2 candidates - search-down | |
163 DBG-DELTAS-SEARCH: CANDIDATE: rev=4962 | |
164 DBG-DELTAS-SEARCH: type=snapshot-4 | |
165 DBG-DELTAS-SEARCH: size=18296 | |
166 DBG-DELTAS-SEARCH: base=4930 | |
167 DBG-DELTAS-SEARCH: uncompressed-delta-size=30377 | |
168 DBG-DELTAS-SEARCH: delta-search-time=* (glob) | |
169 DBG-DELTAS-SEARCH: DELTA: length=16872 (BAD) | |
170 DBG-DELTAS-SEARCH: CANDIDATE: rev=4971 | |
171 DBG-DELTAS-SEARCH: type=snapshot-4 | |
172 DBG-DELTAS-SEARCH: size=19179 | |
173 DBG-DELTAS-SEARCH: base=4930 | |
174 DBG-DELTAS-SEARCH: TOO-HIGH | |
175 DBG-DELTAS-SEARCH: ROUND #2 - 1 candidates - search-down | |
176 DBG-DELTAS-SEARCH: CANDIDATE: rev=4930 | |
177 DBG-DELTAS-SEARCH: type=snapshot-3 | |
178 DBG-DELTAS-SEARCH: size=39228 | |
179 DBG-DELTAS-SEARCH: base=4799 | |
180 DBG-DELTAS-SEARCH: uncompressed-delta-size=33050 | |
181 DBG-DELTAS-SEARCH: delta-search-time=* (glob) | |
182 DBG-DELTAS-SEARCH: DELTA: length=19179 (GOOD) | |
183 DBG-DELTAS-SEARCH: ROUND #3 - 1 candidates - refine-down | |
184 DBG-DELTAS-SEARCH: CONTENDER: rev=4930 - length=19179 | |
185 DBG-DELTAS-SEARCH: CANDIDATE: rev=4799 | |
186 DBG-DELTAS-SEARCH: type=snapshot-2 | |
187 DBG-DELTAS-SEARCH: size=50213 | |
188 DBG-DELTAS-SEARCH: base=4623 | |
189 DBG-DELTAS-SEARCH: uncompressed-delta-size=82661 | |
190 DBG-DELTAS-SEARCH: delta-search-time=* (glob) | |
191 DBG-DELTAS-SEARCH: DELTA: length=49132 (BAD) | |
192 DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: search-rounds=3 try-count=3 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob) | |
193 | |
152 $ cd .. | 194 $ cd .. |