comparison tests/test-largefiles.t @ 26816:e82bce7ec843 stable

largefiles: test coverage of explicit commit of normal/largefile switch This reveals that a switch from normal to largefile violates the normal largefile invariant and gives a manifest with both a normal and standin file in the repository, while a switch from largefile to normal gives nothing. Not good.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 21 Oct 2015 00:10:46 +0200
parents 8c14f87bd0ae
children b68797f244e4
comparison
equal deleted inserted replaced
26815:b57e5bfaad7c 26816:e82bce7ec843
1830 abort: --normal cannot be used with --large 1830 abort: --normal cannot be used with --large
1831 [255] 1831 [255]
1832 $ hg add --normal new-largefile 1832 $ hg add --normal new-largefile
1833 new-largefile: up to 69 MB of RAM may be required to manage this file 1833 new-largefile: up to 69 MB of RAM may be required to manage this file
1834 (use 'hg revert new-largefile' to cancel the pending addition) 1834 (use 'hg revert new-largefile' to cancel the pending addition)
1835
1836 Test explicit commit of switch between normal and largefile - make sure both
1837 the add and the remove is committed.
1838
1839 $ hg up -qC
1840 $ hg forget normal3 large4-renamed
1841 $ hg add --large normal3
1842 $ hg add large4-renamed
1843 $ hg commit -m 'swap' normal3 large4-renamed
1844 Invoking status precommit hook
1845 A large4-renamed
1846 A normal3
1847 ? new-largefile
1848 ? sub2/large6-renamed
1849 $ hg mani
1850 .hglf/normal3
1851 .hglf/sub2/large6
1852 .hglf/sub2/large7
1853 normal3
1854 sub/normal4
1855
1835 $ cd .. 1856 $ cd ..
1836 1857
1837 1858
1838 1859