Mercurial > public > mercurial-scm > hg
comparison mercurial/configitems.py @ 34846:f05a6e015ecc
copies: add a config to limit the number of candidates to check in heuristics
The heuristics algorithm find possible candidates for move/copy and then check
whether they are actually a copy or move. In some cases, there can be lot of
candidates possible which can actually slow down the algorithm.
This patch introduces a config option
`experimental.copytrace.movecandidateslimit` using which one can limit the
candidates to check. The limit defaults to 100.
Thanks to Yuya for suggesting to skip copytracing for that file with a
warning.
Differential Revision: https://phab.mercurial-scm.org/D987
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 10 Oct 2017 02:25:03 +0530 |
parents | 44c4ed4ad032 |
children | 85a2db47ad50 |
comparison
equal
deleted
inserted
replaced
34845:78d9a7b7cdb6 | 34846:f05a6e015ecc |
---|---|
328 default=list, | 328 default=list, |
329 ) | 329 ) |
330 coreconfigitem('experimental', 'copytrace', | 330 coreconfigitem('experimental', 'copytrace', |
331 default='on', | 331 default='on', |
332 ) | 332 ) |
333 coreconfigitem('experimental', 'copytrace.movecandidateslimit', | |
334 default=100, | |
335 ) | |
333 coreconfigitem('experimental', 'copytrace.sourcecommitlimit', | 336 coreconfigitem('experimental', 'copytrace.sourcecommitlimit', |
334 default=100, | 337 default=100, |
335 ) | 338 ) |
336 coreconfigitem('experimental', 'crecordtest', | 339 coreconfigitem('experimental', 'crecordtest', |
337 default=None, | 340 default=None, |