Mercurial > hg-stable
changeset 15304:9aa9d4bb3d88 stable
largefiles: rename config setting 'size' to 'minsize'
author | Greg Ward <greg@gerg.ca> |
---|---|
date | Tue, 18 Oct 2011 20:06:23 -0400 |
parents | 07811b3b119b |
children | 683f417fa538 |
files | hgext/largefiles/__init__.py hgext/largefiles/lfutil.py tests/test-largefiles.t |
diffstat | 3 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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)