Mercurial > public > mercurial-scm > hg
comparison mercurial/copies.py @ 34516:e79b3611223b
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
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 08 Oct 2017 04:39:42 +0530 |
parents | d00910b286cd |
children | 754b5117622f |
comparison
equal
deleted
inserted
replaced
34515:8afc25e7effc | 34516:e79b3611223b |
---|---|
378 | 378 |
379 def _isfullcopytraceable(repo, c1, base): | 379 def _isfullcopytraceable(repo, c1, base): |
380 """ Checks that if base, source and destination are all no-public branches, | 380 """ Checks that if base, source and destination are all no-public branches, |
381 if yes let's use the full copytrace algorithm for increased capabilities | 381 if yes let's use the full copytrace algorithm for increased capabilities |
382 since it will be fast enough. | 382 since it will be fast enough. |
383 | |
384 `experimental.copytrace.sourcecommitlimit` can be used to set a limit for | |
385 number of changesets from c1 to base such that if number of changesets are | |
386 more than the limit, full copytracing algorithm won't be used. | |
383 """ | 387 """ |
384 if c1.rev() is None: | 388 if c1.rev() is None: |
385 c1 = c1.p1() | 389 c1 = c1.p1() |
386 if c1.mutable() and base.mutable(): | 390 if c1.mutable() and base.mutable(): |
387 sourcecommitlimit = repo.ui.configint('experimental', | 391 sourcecommitlimit = repo.ui.configint('experimental', |