mercurial/utils/urlutil.py
branchstable
changeset 50402 c96fd53c0e2d
parent 50401 9d4a2ea3dcb9
child 50403 e9c676ad18f1
--- a/mercurial/utils/urlutil.py	Thu Jun 15 09:50:46 2023 +0200
+++ b/mercurial/utils/urlutil.py	Thu Jun 15 09:51:29 2023 +0200
@@ -746,9 +746,14 @@
     b'no-reuse': revlog_constants.DELTA_BASE_REUSE_NO,
     b'forced': revlog_constants.DELTA_BASE_REUSE_FORCE,
 }
+DELTA_REUSE_POLICIES_NAME = dict(i[::-1] for i in DELTA_REUSE_POLICIES.items())
 
 
-@pathsuboption(b'pulled-delta-reuse-policy', b'delta_reuse_policy')
+@pathsuboption(
+    b'pulled-delta-reuse-policy',
+    b'delta_reuse_policy',
+    display=DELTA_REUSE_POLICIES_NAME.get,
+)
 def delta_reuse_policy(ui, path, value):
     if value not in DELTA_REUSE_POLICIES:
         path_name = path.name