equal
deleted
inserted
replaced
1390 else: |
1390 else: |
1391 dbg_type = b"delta" |
1391 dbg_type = b"delta" |
1392 |
1392 |
1393 if gather_debug: |
1393 if gather_debug: |
1394 end = util.timer() |
1394 end = util.timer() |
1395 used_cached = ( |
1395 if dbg_type == b'full': |
1396 cachedelta is not None |
1396 used_cached = ( |
1397 and dbg_try_rounds == 1 |
1397 cachedelta is not None |
1398 and dbg_try_count == 1 |
1398 and dbg_try_rounds == 0 |
1399 and deltainfo.base == cachedelta[0] |
1399 and dbg_try_count == 0 |
1400 ) |
1400 and cachedelta[0] == nullrev |
|
1401 ) |
|
1402 else: |
|
1403 used_cached = ( |
|
1404 cachedelta is not None |
|
1405 and dbg_try_rounds == 1 |
|
1406 and dbg_try_count == 1 |
|
1407 and deltainfo.base == cachedelta[0] |
|
1408 ) |
1401 dbg = { |
1409 dbg = { |
1402 'duration': end - start, |
1410 'duration': end - start, |
1403 'revision': target_rev, |
1411 'revision': target_rev, |
1404 'delta-base': deltainfo.base, # pytype: disable=attribute-error |
1412 'delta-base': deltainfo.base, # pytype: disable=attribute-error |
1405 'search_round_count': dbg_try_rounds, |
1413 'search_round_count': dbg_try_rounds, |