##// END OF EJS Templates
revlog: remove legacy usage of `_maxchainlen`...
marmoute -
r51945:e80e2d61 default
parent child Browse files
Show More
@@ -641,7 +641,10 b' def is_good_delta_info(revlog, deltainfo'
641 # Bad delta from chain length:
641 # Bad delta from chain length:
642 #
642 #
643 # If the number of delta in the chain gets too high.
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 return False
648 return False
646
649
647 # bad delta from intermediate snapshot size limit
650 # bad delta from intermediate snapshot size limit
@@ -771,7 +774,10 b' def _candidategroups('
771 # here too.
774 # here too.
772 chainlen, chainsize = revlog._chaininfo(rev)
775 chainlen, chainsize = revlog._chaininfo(rev)
773 # if chain will be too long, skip base
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 tested.add(rev)
781 tested.add(rev)
776 continue
782 continue
777 # if chain already have too much data, skip base
783 # if chain already have too much data, skip base
General Comments 0
You need to be logged in to leave comments. Login now