Show More
@@ -641,7 +641,10 b' def is_good_delta_info(revlog, deltainfo' | |||
|
641 | 641 | # Bad delta from chain length: |
|
642 | 642 | # |
|
643 | 643 | # If the number of delta in the chain gets too high. |
|
644 | if revlog._maxchainlen and revlog._maxchainlen < deltainfo.chainlen: | |
|
644 | if ( | |
|
645 | revlog.delta_config.max_chain_len | |
|
646 | and revlog.delta_config.max_chain_len < deltainfo.chainlen | |
|
647 | ): | |
|
645 | 648 | return False |
|
646 | 649 | |
|
647 | 650 | # bad delta from intermediate snapshot size limit |
@@ -771,7 +774,10 b' def _candidategroups(' | |||
|
771 | 774 | # here too. |
|
772 | 775 | chainlen, chainsize = revlog._chaininfo(rev) |
|
773 | 776 | # if chain will be too long, skip base |
|
774 | if revlog._maxchainlen and chainlen >= revlog._maxchainlen: | |
|
777 | if ( | |
|
778 | revlog.delta_config.max_chain_len | |
|
779 | and chainlen >= revlog.delta_config.max_chain_len | |
|
780 | ): | |
|
775 | 781 | tested.add(rev) |
|
776 | 782 | continue |
|
777 | 783 | # if chain already have too much data, skip base |
General Comments 0
You need to be logged in to leave comments.
Login now