# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1649339628 -7200
#      Thu Apr 07 15:53:48 2022 +0200
# Branch stable
# Node ID 8653a2a33736c933672078d2f7d7937e8bcec95e
# Parent  e31bba4c1be36870cd234daf8bf60dd33e3543bb
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

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -2255,7 +2255,7 @@
 coreconfigitem(
     b'ui',
     b'large-file-limit',
-    default=10000000,
+    default=10 * (2 ** 20),
 )
 coreconfigitem(
     b'ui',
diff --git a/mercurial/helptext/config.txt b/mercurial/helptext/config.txt
--- a/mercurial/helptext/config.txt
+++ b/mercurial/helptext/config.txt
@@ -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.