comparison tests/test-largefiles.t @ 16439:290850e7aa43

largefiles: fix cat for largefiles (issue3352) This is a fix to largefiles so that 'hg cat' will work correctly when a largefile is specified. As per discussion on Issue 3352: 1) The file will be printed regardless if it is binary or large. 2) The file is downloaded if it is not readily available (not found in the system cache), so that it can be printed. If the download fails, then we abort.
author Na'Tosha Bard <natosha@unity3d.com>
date Mon, 16 Apr 2012 17:03:39 +0200
parents d6a4cfefafb3
children 874a680a3e23
comparison
equal deleted inserted replaced
16438:28a90cdf0ca0 16439:290850e7aa43
759 $ cat sub2/large6 759 $ cat sub2/large6
760 large6-modified 760 large6-modified
761 $ cat sub2/large7 761 $ cat sub2/large7
762 large7 762 large7
763 763
764 Cat a largefile
765 $ hg cat normal3
766 normal3-modified
767 $ hg cat sub/large4
768 large4-modified
769 $ rm ${USERCACHE}/*
770 $ hg cat -r a381d2c8c80e -o cat.out sub/large4
771 $ cat cat.out
772 large4-modified
773 $ rm cat.out
774 $ hg cat -r a381d2c8c80e normal3
775 normal3-modified
776
764 Test that renaming a largefile results in correct output for status 777 Test that renaming a largefile results in correct output for status
765 778
766 $ hg rename sub/large4 large4-renamed 779 $ hg rename sub/large4 large4-renamed
767 $ hg commit -m "test rename output" 780 $ hg commit -m "test rename output"
768 Invoking status precommit hook 781 Invoking status precommit hook