Show More
@@ -1471,41 +1471,43 b' class deltacomputer:' | |||
|
1471 | 1471 | if target_key: |
|
1472 | 1472 | target_revlog += b'%s:' % target_key |
|
1473 | 1473 | dbg['target-revlog'] = target_revlog |
|
1474 | self._dbg_process_data(dbg) | |
|
1475 | return deltainfo | |
|
1474 | 1476 | |
|
1475 | if self._debug_info is not None: | |
|
1476 |
|
|
|
1477 | def _dbg_process_data(self, dbg): | |
|
1478 | if self._debug_info is not None: | |
|
1479 | self._debug_info.append(dbg) | |
|
1477 | 1480 | |
|
1478 |
|
|
|
1479 |
|
|
|
1480 |
|
|
|
1481 |
|
|
|
1482 |
|
|
|
1483 |
|
|
|
1484 |
|
|
|
1485 |
|
|
|
1486 |
|
|
|
1487 |
|
|
|
1488 |
|
|
|
1489 |
|
|
|
1490 |
|
|
|
1491 |
|
|
|
1492 |
|
|
|
1493 |
|
|
|
1494 |
|
|
|
1495 |
|
|
|
1496 |
|
|
|
1497 |
|
|
|
1498 |
|
|
|
1499 |
|
|
|
1500 |
|
|
|
1501 |
|
|
|
1502 |
|
|
|
1503 |
|
|
|
1504 |
|
|
|
1505 |
|
|
|
1506 |
|
|
|
1507 |
|
|
|
1508 | return deltainfo | |
|
1481 | if self._write_debug is not None: | |
|
1482 | msg = ( | |
|
1483 | b"DBG-DELTAS:" | |
|
1484 | b" %-12s" | |
|
1485 | b" rev=%d:" | |
|
1486 | b" delta-base=%d" | |
|
1487 | b" is-cached=%d" | |
|
1488 | b" - search-rounds=%d" | |
|
1489 | b" try-count=%d" | |
|
1490 | b" - delta-type=%-6s" | |
|
1491 | b" snap-depth=%d" | |
|
1492 | b" - p1-chain-length=%d" | |
|
1493 | b" p2-chain-length=%d" | |
|
1494 | b" - duration=%f" | |
|
1495 | b"\n" | |
|
1496 | ) | |
|
1497 | msg %= ( | |
|
1498 | dbg["target-revlog"], | |
|
1499 | dbg["revision"], | |
|
1500 | dbg["delta-base"], | |
|
1501 | dbg["using-cached-base"], | |
|
1502 | dbg["search_round_count"], | |
|
1503 | dbg["delta_try_count"], | |
|
1504 | dbg["type"], | |
|
1505 | dbg["snapshot-depth"], | |
|
1506 | dbg["p1-chain-len"], | |
|
1507 | dbg["p2-chain-len"], | |
|
1508 | dbg["duration"], | |
|
1509 | ) | |
|
1510 | self._write_debug(msg) | |
|
1509 | 1511 | |
|
1510 | 1512 | |
|
1511 | 1513 | def delta_compression(default_compression_header, deltainfo): |
General Comments 0
You need to be logged in to leave comments.
Login now