##// END OF EJS Templates
path: display proper user facing value for pulled-delta-reuse-policy...
marmoute -
r51586:c96fd53c stable
parent child Browse files
Show More
@@ -746,9 +746,14 b' DELTA_REUSE_POLICIES = {'
746 b'no-reuse': revlog_constants.DELTA_BASE_REUSE_NO,
746 b'no-reuse': revlog_constants.DELTA_BASE_REUSE_NO,
747 b'forced': revlog_constants.DELTA_BASE_REUSE_FORCE,
747 b'forced': revlog_constants.DELTA_BASE_REUSE_FORCE,
748 }
748 }
749 DELTA_REUSE_POLICIES_NAME = dict(i[::-1] for i in DELTA_REUSE_POLICIES.items())
749
750
750
751
751 @pathsuboption(b'pulled-delta-reuse-policy', b'delta_reuse_policy')
752 @pathsuboption(
753 b'pulled-delta-reuse-policy',
754 b'delta_reuse_policy',
755 display=DELTA_REUSE_POLICIES_NAME.get,
756 )
752 def delta_reuse_policy(ui, path, value):
757 def delta_reuse_policy(ui, path, value):
753 if value not in DELTA_REUSE_POLICIES:
758 if value not in DELTA_REUSE_POLICIES:
754 path_name = path.name
759 path_name = path.name
@@ -180,7 +180,7 b' pull with "forced" policy'
180 $ cp -R client client-forced
180 $ cp -R client client-forced
181 $ hg -R client-forced paths --config paths.default:pulled-delta-reuse-policy=forced
181 $ hg -R client-forced paths --config paths.default:pulled-delta-reuse-policy=forced
182 default = $TESTTMP/server
182 default = $TESTTMP/server
183 default:pulled-delta-reuse-policy = 2
183 default:pulled-delta-reuse-policy = forced
184 $ hg -R client-forced pull --config paths.default:pulled-delta-reuse-policy=forced
184 $ hg -R client-forced pull --config paths.default:pulled-delta-reuse-policy=forced
185 pulling from $TESTTMP/server
185 pulling from $TESTTMP/server
186 requesting all changes
186 requesting all changes
General Comments 0
You need to be logged in to leave comments. Login now