diff mercurial/utils/urlutil.py @ 50246:f35cf52acabd

delta-find: rename `delta-reuse-policy` to `pulled-delta-reuse-policy` This make it clearer which type of delta we are talking about.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 23 Feb 2023 15:32:27 +0100
parents e0c0545e2e55
children 9d4a2ea3dcb9 9e69d9d6f4cf
line wrap: on
line diff
--- a/mercurial/utils/urlutil.py	Thu Feb 23 15:27:42 2023 +0100
+++ b/mercurial/utils/urlutil.py	Thu Feb 23 15:32:27 2023 +0100
@@ -742,14 +742,16 @@
 }
 
 
-@pathsuboption(b'delta-reuse-policy', b'delta_reuse_policy')
+@pathsuboption(b'pulled-delta-reuse-policy', b'delta_reuse_policy')
 def delta_reuse_policy(ui, path, value):
     if value not in DELTA_REUSE_POLICIES:
         path_name = path.name
         if path_name is None:
             # this is an "anonymous" path, config comes from the global one
             path_name = b'*'
-        msg = _(b'(paths.%s:delta-reuse-policy has unknown value: "%s")\n')
+        msg = _(
+            b'(paths.%s:pulled-delta-reuse-policy has unknown value: "%s")\n'
+        )
         msg %= (path_name, value)
         ui.warn(msg)
     return DELTA_REUSE_POLICIES.get(value)