help: set the large-file-limit to 10MB stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 07 Apr 2022 15:53:48 +0200
branchstable
changeset 49050 8653a2a33736
parent 49049 e31bba4c1be3
child 49059 80579e597439
help: set the large-file-limit to 10MB This is a minor increase (5%) and makes the doc much clearer. Differential Revision: https://phab.mercurial-scm.org/D12484
mercurial/configitems.py
mercurial/helptext/config.txt
--- a/mercurial/configitems.py	Thu Apr 07 15:46:07 2022 +0200
+++ b/mercurial/configitems.py	Thu Apr 07 15:53:48 2022 +0200
@@ -2255,7 +2255,7 @@
 coreconfigitem(
     b'ui',
     b'large-file-limit',
-    default=10000000,
+    default=10 * (2 ** 20),
 )
 coreconfigitem(
     b'ui',
--- a/mercurial/helptext/config.txt	Thu Apr 07 15:46:07 2022 +0200
+++ b/mercurial/helptext/config.txt	Thu Apr 07 15:53:48 2022 +0200
@@ -2631,7 +2631,7 @@
     Largest file size that gives no memory use warning.
     Possible values are integers or 0 to disable the check.
     Value is expressed in bytes by default, one can use standard units for
-    convenience (e.g. 10MB, 0.1GB, etc) (default: 10000000)
+    convenience (e.g. 10MB, 0.1GB, etc) (default: 10MB)
 
 ``logtemplate``
     (DEPRECATED) Use ``command-templates.log`` instead.