##// END OF EJS Templates
largefiles: use smaller files in test script
Greg Ward -
r15330:1e6fcce4 stable
parent child Browse files
Show More
@@ -193,7 +193,7 b' Corner cases for adding largefiles.'
193 193 Config settings (pattern **.dat, minsize 2 MB) are respected.
194 194
195 195 $ echo testdata > test.dat
196 $ dd bs=3145728 count=1 if=/dev/zero of=reallylarge > /dev/null 2> /dev/null
196 $ dd bs=1k count=2k if=/dev/zero of=reallylarge > /dev/null 2> /dev/null
197 197 $ hg add
198 198 adding reallylarge as a largefile
199 199 adding test.dat as a largefile
@@ -677,16 +677,14 b' been very problematic).'
677 677 "lfconvert" works
678 678 $ hg init bigfile-repo
679 679 $ cd bigfile-repo
680 $ dd if=/dev/zero bs=1k count=23k > a-large-file 2> /dev/null
680 $ dd if=/dev/zero bs=1k count=256 > a-large-file 2> /dev/null
681 681 $ hg addremove
682 682 adding a-large-file
683 a-large-file: up to 72 MB of RAM may be required to manage this file
684 (use 'hg revert a-large-file' to cancel the pending addition)
685 $ hg commit -m "Commit file without making it be a largefile"
683 $ hg commit -m "add a-large-file (as a normal file)"
686 684 $ find .hg/largefiles
687 685 .hg/largefiles
688 686 $ cd ..
689 $ hg lfconvert --size 10 bigfile-repo largefiles-repo
687 $ hg lfconvert --size 0.2 bigfile-repo largefiles-repo
690 688 initializing destination largefiles-repo
691 689
692 690 "lfconvert" adds 'largefiles' to .hg/requires.
@@ -704,13 +702,13 b' been very problematic).'
704 702 getting changed largefiles
705 703 1 largefiles updated, 0 removed
706 704 $ cat .hglf/a-large-file
707 8b0629c630f530cde051aeb42ce561756738fbe7
708 $ dd if=/dev/zero bs=1k count=11k > another-large-file 2> /dev/null
709 $ hg add another-large-file
710 $ hg commit -m "Commit another file that should get automatically added as a largefile"
705 2e000fa7e85759c7f4c254d4d9c33ef481e459a7
706 $ dd if=/dev/zero bs=1k count=1k > another-large-file 2> /dev/null
707 $ hg add --lfsize=1 another-large-file
708 $ hg commit -m "add another-large-file (should be a largefile)"
711 709 $ cat .hglf/a-large-file .hglf/another-large-file
712 8b0629c630f530cde051aeb42ce561756738fbe7
713 187a0f76e02aac9c24f71c820be1f34ef1c76e76
710 2e000fa7e85759c7f4c254d4d9c33ef481e459a7
711 3b71f43ff30f4b15b5cd85dd9e95ebc7e84eb5a3
714 712 $ cd ..
715 713 $ rm -rf bigfile-repo largefiles-repo
716 714
General Comments 0
You need to be logged in to leave comments. Login now