comparison mercurial/bundle2.py @ 51661:a0f1378b932e stable

Backed out changeset f28c52a9f7b4 This backout and the previous are due to a large performance regression detected in repositories with a lot of obsmarkers when performing a clone. A better fix will come along at the start of the next cycle.
author Raphaël Gomès <rgomes@octobus.net>
date Mon, 08 Jul 2024 16:20:04 +0200
parents f28c52a9f7b4
children b8647465b59a 6fc31e7bd5db
comparison
equal deleted inserted replaced
51660:66aa49e6e5d1 51661:a0f1378b932e
1786 1786
1787 if opts.get(b'revbranchcache', True): 1787 if opts.get(b'revbranchcache', True):
1788 addpartrevbranchcache(repo, bundler, outgoing) 1788 addpartrevbranchcache(repo, bundler, outgoing)
1789 1789
1790 if opts.get(b'obsolescence', False): 1790 if opts.get(b'obsolescence', False):
1791 obsmarkers = repo.obsstore.relevantmarkers(nodes=outgoing.missing) 1791 obsmarkers = repo.obsstore.relevantmarkers(outgoing.missing)
1792 buildobsmarkerspart( 1792 buildobsmarkerspart(
1793 bundler, 1793 bundler,
1794 obsmarkers, 1794 obsmarkers,
1795 mandatory=opts.get(b'obsolescence-mandatory', True), 1795 mandatory=opts.get(b'obsolescence-mandatory', True),
1796 ) 1796 )