Mercurial > hg-stable
changeset 15329:944f9b7cfe4e stable
largefiles: test that minimum size can be a float
This allows us to drop the existing test of --lfsize, since it's
redundant with the new test.
author | Greg Ward <greg@gerg.ca> |
---|---|
date | Thu, 20 Oct 2011 22:22:24 -0400 |
parents | 9b4ab5f7ad2a |
children | 1e6fcce4aab3 |
files | tests/test-largefiles.t |
diffstat | 1 files changed, 23 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-largefiles.t Thu Oct 20 22:14:11 2011 -0400 +++ b/tests/test-largefiles.t Thu Oct 20 22:22:24 2011 -0400 @@ -197,30 +197,45 @@ $ hg add adding reallylarge as a largefile adding test.dat as a largefile - $ dd bs=1048576 count=1 if=/dev/zero of=reallylarge2 > /dev/null 2> /dev/null + +Test that minsize and --lfsize handle float values; +also tests that --lfsize overrides largefiles.minsize. +(0.250 MB = 256 kB = 262144 B) ---lfsize option overrides largefiles.minsize. - - $ hg add --lfsize 1 - adding reallylarge2 as a largefile + $ dd if=/dev/zero of=ratherlarge bs=1024 count=256 > /dev/null 2> /dev/null + $ dd if=/dev/zero of=medium bs=1024 count=128 > /dev/null 2> /dev/null + $ hg --config largefiles.minsize=.25 add + adding ratherlarge as a largefile + adding medium + $ hg forget medium + $ hg --config largefiles.minsize=.25 add --lfsize=.125 + adding medium as a largefile + $ dd if=/dev/zero of=notlarge bs=1024 count=127 > /dev/null 2> /dev/null + $ hg --config largefiles.minsize=.25 add --lfsize=.125 + adding notlarge + $ hg forget notlarge Test forget on largefiles. - $ hg forget large3 large5 test.dat reallylarge reallylarge2 + $ hg forget large3 large5 test.dat reallylarge ratherlarge medium $ hg st A sub2/large6 A sub2/large7 R large3 ? large5 + ? medium + ? notlarge + ? ratherlarge ? reallylarge - ? reallylarge2 ? test.dat $ hg commit -m "add/edit more largefiles" $ hg st ? large3 ? large5 + ? medium + ? notlarge + ? ratherlarge ? reallylarge - ? reallylarge2 ? test.dat Purge with largefiles: verify that largefiles are still in the working