Patchwork D12483: help: clarify the unit of `ui.large-file-limit` config

login
register
mail settings
Submitter phabricator
Date April 7, 2022, 2:49 p.m.
Message ID <differential-rev-PHID-DREV-ogfocdrbp2aganl2awlv-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50829/
State New
Headers show

Comments

phabricator - April 7, 2022, 2:49 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Its might be a bit confusing, especially since `large-file.min-size` uses MB.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

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

AFFECTED FILES
  mercurial/helptext/config.txt

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/helptext/config.txt b/mercurial/helptext/config.txt
--- a/mercurial/helptext/config.txt
+++ b/mercurial/helptext/config.txt
@@ -2630,7 +2630,8 @@ 
 ``large-file-limit``
     Largest file size that gives no memory use warning.
     Possible values are integers or 0 to disable the check.
-    (default: 10000000)
+    Value is expressed in bytes by default, one can use standard unit for
+    convenience (e.g. 10MB, 0.1GB, etc) (default: 10000000)
 
 ``logtemplate``
     (DEPRECATED) Use ``command-templates.log`` instead.