comparison mercurial/utils/urlutil.py @ 49879:bcae90c53def

delta-find: add a delta-reuse policy that blindly accepts incoming deltas When this policy is set, incoming deltas are blindly accepted without regard for the validity of the chain they build.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 07 Nov 2022 22:30:30 -0500
parents f1887500f3ec
children a9602a84a442
comparison
equal deleted inserted replaced
49878:f1887500f3ec 49879:bcae90c53def
773 773
774 DELTA_REUSE_POLICIES = { 774 DELTA_REUSE_POLICIES = {
775 b'default': None, 775 b'default': None,
776 b'try-base': revlog_constants.DELTA_BASE_REUSE_TRY, 776 b'try-base': revlog_constants.DELTA_BASE_REUSE_TRY,
777 b'no-reuse': revlog_constants.DELTA_BASE_REUSE_NO, 777 b'no-reuse': revlog_constants.DELTA_BASE_REUSE_NO,
778 b'forced': revlog_constants.DELTA_BASE_REUSE_FORCE,
778 } 779 }
779 780
780 781
781 @pathsuboption(b'delta-reuse-policy', b'delta_reuse_policy') 782 @pathsuboption(b'delta-reuse-policy', b'delta_reuse_policy')
782 def delta_reuse_policy(ui, path, value): 783 def delta_reuse_policy(ui, path, value):