Show More
@@ -291,7 +291,7 b' def _lfconvert_addchangeset(rsrc, rdst, ' | |||
|
291 | 291 | # doesn't change after rename or copy |
|
292 | 292 | renamed = lfutil.standin(renamed[0]) |
|
293 | 293 | |
|
294 | return context.memfilectx(f, lfiletohash[srcfname], 'l' in | |
|
294 | return context.memfilectx(f, lfiletohash[srcfname] + '\n', 'l' in | |
|
295 | 295 | fctx.flags(), 'x' in fctx.flags(), renamed) |
|
296 | 296 | else: |
|
297 | 297 | try: |
@@ -683,5 +683,21 b" Verify that lfconvert adds 'largefiles' " | |||
|
683 | 683 | fncache |
|
684 | 684 | store |
|
685 | 685 | dotencode |
|
686 | ||
|
687 | Make sure that lfconvert includes a newline at the end of the standin files. | |
|
688 | $ cd largefiles-repo | |
|
689 | $ hg up | |
|
690 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
691 | getting changed largefiles | |
|
692 | 1 largefiles updated, 0 removed | |
|
693 | $ cat .hglf/a-large-file | |
|
694 | 8b0629c630f530cde051aeb42ce561756738fbe7 | |
|
695 | $ dd if=/dev/zero bs=1k count=11k > another-large-file 2> /dev/null | |
|
696 | $ hg add another-large-file | |
|
697 | $ hg commit -m "Commit another file that should get automatically added as a largefile" | |
|
698 | $ cat .hglf/a-large-file .hglf/another-large-file | |
|
699 | 8b0629c630f530cde051aeb42ce561756738fbe7 | |
|
700 | 187a0f76e02aac9c24f71c820be1f34ef1c76e76 | |
|
701 | $ cd .. | |
|
686 | 702 | $ rm -rf bigfile-repo largefiles-repo |
|
687 | 703 |
General Comments 0
You need to be logged in to leave comments.
Login now