# HG changeset patch # User Greg Ward # Date 1318982783 14400 # Node ID 9aa9d4bb3d88459bfdc636240af32becf855703b # Parent 07811b3b119b22b6ad2170ffa1ac5fc335a82ef4 largefiles: rename config setting 'size' to 'minsize' diff -r 07811b3b119b -r 9aa9d4bb3d88 hgext/largefiles/__init__.py --- a/hgext/largefiles/__init__.py Tue Oct 18 16:40:59 2011 -0500 +++ b/hgext/largefiles/__init__.py Tue Oct 18 20:06:23 2011 -0400 @@ -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 -r 07811b3b119b -r 9aa9d4bb3d88 hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py Tue Oct 18 16:40:59 2011 -0500 +++ b/hgext/largefiles/lfutil.py Tue Oct 18 20:06:23 2011 -0400 @@ -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 -r 07811b3b119b -r 9aa9d4bb3d88 tests/test-largefiles.t --- a/tests/test-largefiles.t Tue Oct 18 16:40:59 2011 -0500 +++ b/tests/test-largefiles.t Tue Oct 18 20:06:23 2011 -0400 @@ -4,7 +4,7 @@ > purge= > rebase= > [largefiles] - > size=2 + > minsize=2 > patterns=glob:**.dat > EOF