mercurial/utils/urlutil.py
changeset 50207 f35cf52acabd
parent 49845 e0c0545e2e55
child 50615 9e69d9d6f4cf
child 50692 9d4a2ea3dcb9
equal deleted inserted replaced
50206:e69dc67f79a5 50207:f35cf52acabd
   740     b'no-reuse': revlog_constants.DELTA_BASE_REUSE_NO,
   740     b'no-reuse': revlog_constants.DELTA_BASE_REUSE_NO,
   741     b'forced': revlog_constants.DELTA_BASE_REUSE_FORCE,
   741     b'forced': revlog_constants.DELTA_BASE_REUSE_FORCE,
   742 }
   742 }
   743 
   743 
   744 
   744 
   745 @pathsuboption(b'delta-reuse-policy', b'delta_reuse_policy')
   745 @pathsuboption(b'pulled-delta-reuse-policy', b'delta_reuse_policy')
   746 def delta_reuse_policy(ui, path, value):
   746 def delta_reuse_policy(ui, path, value):
   747     if value not in DELTA_REUSE_POLICIES:
   747     if value not in DELTA_REUSE_POLICIES:
   748         path_name = path.name
   748         path_name = path.name
   749         if path_name is None:
   749         if path_name is None:
   750             # this is an "anonymous" path, config comes from the global one
   750             # this is an "anonymous" path, config comes from the global one
   751             path_name = b'*'
   751             path_name = b'*'
   752         msg = _(b'(paths.%s:delta-reuse-policy has unknown value: "%s")\n')
   752         msg = _(
       
   753             b'(paths.%s:pulled-delta-reuse-policy has unknown value: "%s")\n'
       
   754         )
   753         msg %= (path_name, value)
   755         msg %= (path_name, value)
   754         ui.warn(msg)
   756         ui.warn(msg)
   755     return DELTA_REUSE_POLICIES.get(value)
   757     return DELTA_REUSE_POLICIES.get(value)
   756 
   758 
   757 
   759