##// END OF EJS Templates
largefiles: allow minimum size to be a float...
Greg Ward -
r15228:ee625de3 default
parent child Browse files
Show More
@@ -464,7 +464,7 b' def _updatelfile(repo, lfdirstate, lfile'
464
464
465 cmdtable = {
465 cmdtable = {
466 'lfconvert': (lfconvert,
466 'lfconvert': (lfconvert,
467 [('s', 'size', 0, 'All files over this size (in megabytes) '
467 [('s', 'size', '', 'All files over this size (in megabytes) '
468 'will be considered largefiles. This can also be specified '
468 'will be considered largefiles. This can also be specified '
469 'in your hgrc as [largefiles].size.'),
469 'in your hgrc as [largefiles].size.'),
470 ('','tonormal',False,
470 ('','tonormal',False,
@@ -64,9 +64,9 b' def getminsize(ui, assumelfiles, opt, de'
64 lfsize = ui.config(longname, 'size', default=default)
64 lfsize = ui.config(longname, 'size', default=default)
65 if lfsize:
65 if lfsize:
66 try:
66 try:
67 lfsize = int(lfsize)
67 lfsize = float(lfsize)
68 except ValueError:
68 except ValueError:
69 raise util.Abort(_('largefiles: size must be an integer, was %s\n')
69 raise util.Abort(_('largefiles: size must be number (not %s)\n')
70 % lfsize)
70 % lfsize)
71 if lfsize is None:
71 if lfsize is None:
72 raise util.Abort(_('minimum size for largefiles must be specified'))
72 raise util.Abort(_('minimum size for largefiles must be specified'))
General Comments 0
You need to be logged in to leave comments. Login now