Patchwork D986: copies: add docs for config `experimental.copytrace.sourcecommitlimit`

login
register
mail settings
Submitter phabricator
Date Oct. 9, 2017, 1:55 p.m.
Message ID <9e97693a2d384072ecaa72a8bd4a4bd5@localhost.localdomain>
Download mbox | patch
Permalink /patch/24656/
State Not Applicable
Headers show

Comments

phabricator - Oct. 9, 2017, 1:55 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe79b3611223b: copies: add docs for config `experimental.copytrace.sourcecommitlimit` (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D986?vs=2521&id=2532

REVISION DETAIL
  https://phab.mercurial-scm.org/D986

AFFECTED FILES
  mercurial/copies.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, yuja
Cc: yuja, mercurial-devel

Patch

diff --git a/mercurial/copies.py b/mercurial/copies.py
--- a/mercurial/copies.py
+++ b/mercurial/copies.py
@@ -380,6 +380,10 @@ 
     """ 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()