[PATCH] largefiles: rename config setting 'size' to 'minsize'

Greg Ward greg at gerg.ca
Tue Oct 18 19:06:30 CDT 2011


# HG changeset patch
# User Greg Ward <greg at gerg.ca>
# Date 1318982783 14400
# Branch stable
# Node ID 99e9ef2e80bfacc1fb66700aa19fc14635d79387
# Parent  dd8cf8f16b1066557576128b2d9c492c77a48b5e
largefiles: rename config setting 'size' to 'minsize'

diff --git a/hgext/largefiles/__init__.py b/hgext/largefiles/__init__.py
--- a/hgext/largefiles/__init__.py
+++ b/hgext/largefiles/__init__.py
@@ -56,12 +56,12 @@
 
 In repositories that already have largefiles in them, any new file
 over 10MB will automatically be added as a largefile. To change this
-threshhold, set ``largefiles.size`` in your Mercurial config file to
-the minimum size in megabytes to track as a largefile, or use the
+threshold, set ``largefiles.minsize`` in your Mercurial config file
+to the minimum size in megabytes to track as a largefile, or use the
 --lfsize option to the add command (also in megabytes)::
 
   [largefiles]
-  size = 2
+  minsize = 2
 
   $ hg add --lfsize 2
 
diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py
+++ b/hgext/largefiles/lfutil.py
@@ -61,7 +61,7 @@
 def getminsize(ui, assumelfiles, opt, default=10):
     lfsize = opt
     if not lfsize and assumelfiles:
-        lfsize = ui.config(longname, 'size', default=default)
+        lfsize = ui.config(longname, 'minsize', default=default)
     if lfsize:
         try:
             lfsize = float(lfsize)
diff --git a/tests/test-largefiles.t b/tests/test-largefiles.t
--- a/tests/test-largefiles.t
+++ b/tests/test-largefiles.t
@@ -4,7 +4,7 @@
   > purge=
   > rebase=
   > [largefiles]
-  > size=2
+  > minsize=2
   > patterns=glob:**.dat
   > EOF
 


More information about the Mercurial-devel mailing list