comparison mercurial/bundle2.py @ 49767:f1887500f3ec

delta-find: add a `delta-reuse-policy` on configuration `path` That option allows to control the behavior on a per-path basis, opening the way to treating pulls from central servers differently than other operations.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 03 Dec 2022 01:24:34 +0100
parents 4188e75af983
children 385a4f8056e5
comparison
equal deleted inserted replaced
49766:152d9c011bcd 49767:f1887500f3ec
515 for part in parts: 515 for part in parts:
516 _processpart(op, part) 516 _processpart(op, part)
517 517
518 518
519 def _processchangegroup(op, cg, tr, source, url, **kwargs): 519 def _processchangegroup(op, cg, tr, source, url, **kwargs):
520 if op.remote is not None and op.remote.path is not None:
521 remote_path = op.remote.path
522 kwargs = kwargs.copy()
523 kwargs['delta_base_reuse_policy'] = remote_path.delta_reuse_policy
520 ret = cg.apply(op.repo, tr, source, url, **kwargs) 524 ret = cg.apply(op.repo, tr, source, url, **kwargs)
521 op.records.add( 525 op.records.add(
522 b'changegroup', 526 b'changegroup',
523 { 527 {
524 b'return': ret, 528 b'return': ret,