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