Crash if largefiles minsize is specified as float
Created originally on Bitbucket by bchallenor (Ben Challenor)
The largefiles extension should support minsize <1. (See getminsize() at http://www.selenic.com/hg/file/tip/hgext/largefiles/lfutil.py where it is parsed as a float.)
However in TortoiseHG if I set a minsize of 0.5 and attempt to commit a 512kB file, I get the following crash:
{{{ #!python ** Mercurial version (2.2.1). TortoiseHg version (2.4) ** Command: --nofork workbench ** CWD: C:\Work\TestLargefiles ** Encoding: cp1252 ** Extensions loaded: mq, rebase, transplant, convert, hgsubversion, purge, mercurial_keyring, largefiles ** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)] ** Windows version: (6, 1, 7601, 2, 'Service Pack 1') ** Processor architecture: x64 ** Qt-4.7.4 PyQt-4.8.6 Traceback (most recent call last): File "tortoisehg\hgqt\commit.pyo", line 437, in mqPerformAction File "tortoisehg\hgqt\commit.pyo", line 821, in commit File "tortoisehg\hgqt\lfprompt.pyo", line 30, in promptForLfiles ValueError: invalid literal for int() with base 10: '0.5'
}}}