# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-10-07 23:09:42 # Node ID e79b3611223b96c7d3482b19cb3102153fc0d744 # Parent 8afc25e7effc71241f53bf709c24c72bfae0f6b6 copies: add docs for config `experimental.copytrace.sourcecommitlimit` This patch adds documentation for the config option. The config name does not convey much and hence documentation was required. Differential Revision: https://phab.mercurial-scm.org/D986 diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -380,6 +380,10 @@ def _isfullcopytraceable(repo, c1, base) """ Checks that if base, source and destination are all no-public branches, if yes let's use the full copytrace algorithm for increased capabilities since it will be fast enough. + + `experimental.copytrace.sourcecommitlimit` can be used to set a limit for + number of changesets from c1 to base such that if number of changesets are + more than the limit, full copytracing algorithm won't be used. """ if c1.rev() is None: c1 = c1.p1()