diff --git a/mercurial/utils/urlutil.py b/mercurial/utils/urlutil.py index 9d4a2ea3dcb961ea7d30aca3e09d01c9678a1116_bWVyY3VyaWFsL3V0aWxzL3VybHV0aWwucHk=..c96fd53c0e2db9d3c3591e4c4ab3edf061fa9182_bWVyY3VyaWFsL3V0aWxzL3VybHV0aWwucHk= 100644 --- a/mercurial/utils/urlutil.py +++ b/mercurial/utils/urlutil.py @@ -746,5 +746,6 @@ 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()) @@ -749,6 +750,10 @@ -@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 diff --git a/tests/test-pullling-to-general-delta.t b/tests/test-pullling-to-general-delta.t index 9d4a2ea3dcb961ea7d30aca3e09d01c9678a1116_dGVzdHMvdGVzdC1wdWxsbGluZy10by1nZW5lcmFsLWRlbHRhLnQ=..c96fd53c0e2db9d3c3591e4c4ab3edf061fa9182_dGVzdHMvdGVzdC1wdWxsbGluZy10by1nZW5lcmFsLWRlbHRhLnQ= 100644 --- a/tests/test-pullling-to-general-delta.t +++ b/tests/test-pullling-to-general-delta.t @@ -180,7 +180,7 @@ $ cp -R client client-forced $ hg -R client-forced paths --config paths.default:pulled-delta-reuse-policy=forced default = $TESTTMP/server - default:pulled-delta-reuse-policy = 2 + default:pulled-delta-reuse-policy = forced $ hg -R client-forced pull --config paths.default:pulled-delta-reuse-policy=forced pulling from $TESTTMP/server requesting all changes