Show More
@@ -193,7 +193,7 b' Corner cases for adding largefiles.' | |||||
193 | Config settings (pattern **.dat, minsize 2 MB) are respected. |
|
193 | Config settings (pattern **.dat, minsize 2 MB) are respected. | |
194 |
|
194 | |||
195 | $ echo testdata > test.dat |
|
195 | $ echo testdata > test.dat | |
196 |
$ dd bs= |
|
196 | $ dd bs=1k count=2k if=/dev/zero of=reallylarge > /dev/null 2> /dev/null | |
197 | $ hg add |
|
197 | $ hg add | |
198 | adding reallylarge as a largefile |
|
198 | adding reallylarge as a largefile | |
199 | adding test.dat as a largefile |
|
199 | adding test.dat as a largefile | |
@@ -677,16 +677,14 b' been very problematic).' | |||||
677 | "lfconvert" works |
|
677 | "lfconvert" works | |
678 | $ hg init bigfile-repo |
|
678 | $ hg init bigfile-repo | |
679 | $ cd bigfile-repo |
|
679 | $ cd bigfile-repo | |
680 |
$ dd if=/dev/zero bs=1k count=2 |
|
680 | $ dd if=/dev/zero bs=1k count=256 > a-large-file 2> /dev/null | |
681 | $ hg addremove |
|
681 | $ hg addremove | |
682 | adding a-large-file |
|
682 | adding a-large-file | |
683 | a-large-file: up to 72 MB of RAM may be required to manage this file |
|
683 | $ hg commit -m "add a-large-file (as a normal 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" |
|
|||
686 | $ find .hg/largefiles |
|
684 | $ find .hg/largefiles | |
687 | .hg/largefiles |
|
685 | .hg/largefiles | |
688 | $ cd .. |
|
686 | $ cd .. | |
689 |
$ hg lfconvert --size |
|
687 | $ hg lfconvert --size 0.2 bigfile-repo largefiles-repo | |
690 | initializing destination largefiles-repo |
|
688 | initializing destination largefiles-repo | |
691 |
|
689 | |||
692 | "lfconvert" adds 'largefiles' to .hg/requires. |
|
690 | "lfconvert" adds 'largefiles' to .hg/requires. | |
@@ -704,13 +702,13 b' been very problematic).' | |||||
704 | getting changed largefiles |
|
702 | getting changed largefiles | |
705 | 1 largefiles updated, 0 removed |
|
703 | 1 largefiles updated, 0 removed | |
706 | $ cat .hglf/a-large-file |
|
704 | $ cat .hglf/a-large-file | |
707 | 8b0629c630f530cde051aeb42ce561756738fbe7 |
|
705 | 2e000fa7e85759c7f4c254d4d9c33ef481e459a7 | |
708 |
$ dd if=/dev/zero bs=1k count=1 |
|
706 | $ dd if=/dev/zero bs=1k count=1k > another-large-file 2> /dev/null | |
709 | $ hg add another-large-file |
|
707 | $ hg add --lfsize=1 another-large-file | |
710 |
$ hg commit -m " |
|
708 | $ hg commit -m "add another-large-file (should be a largefile)" | |
711 | $ cat .hglf/a-large-file .hglf/another-large-file |
|
709 | $ cat .hglf/a-large-file .hglf/another-large-file | |
712 | 8b0629c630f530cde051aeb42ce561756738fbe7 |
|
710 | 2e000fa7e85759c7f4c254d4d9c33ef481e459a7 | |
713 | 187a0f76e02aac9c24f71c820be1f34ef1c76e76 |
|
711 | 3b71f43ff30f4b15b5cd85dd9e95ebc7e84eb5a3 | |
714 | $ cd .. |
|
712 | $ cd .. | |
715 | $ rm -rf bigfile-repo largefiles-repo |
|
713 | $ rm -rf bigfile-repo largefiles-repo | |
716 |
|
714 |
General Comments 0
You need to be logged in to leave comments.
Login now