comparison tests/test-lfs.t @ 35649:1f0690bfc683

test-lfs: drop an unresolved issue note, now that lfs.track=none() is a thing
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 13 Jan 2018 22:29:18 -0500
parents 588d02d9208a
children 4568e98b5f45
comparison
equal deleted inserted replaced
35648:588d02d9208a 35649:1f0690bfc683
824 824
825 $ hg --cwd fromcorrupt2 cat -r 0 large 825 $ hg --cwd fromcorrupt2 cat -r 0 large
826 abort: integrity check failed on data/large.i:0! 826 abort: integrity check failed on data/large.i:0!
827 [255] 827 [255]
828 828
829 lfs -> normal -> lfs round trip conversions are possible. The threshold for the 829 lfs -> normal -> lfs round trip conversions are possible. The 'none()'
830 lfs destination is specified here because it was originally listed in the local 830 predicate on the command line will override whatever is configured globally and
831 .hgrc, and the global one is too high to trigger lfs usage. For lfs -> normal, 831 locally, and ensures everything converts to a regular file. For lfs -> normal,
832 there's no 'lfs' destination repo requirement. For normal -> lfs, there is. 832 there's no 'lfs' destination repo requirement. For normal -> lfs, there is.
833 833
834 XXX: There's not a great way to ensure that the conversion to normal files 834 $ hg --config extensions.convert= --config 'lfs.track=none()' \
835 actually converts _everything_ to normal. The extension needs to be loaded for
836 the source, but there's no way to disable it for the destination. The best that
837 can be done is to raise the threshold so that lfs isn't used on the destination.
838 It doesn't like using '!' to unset the value on the command line.
839
840 $ hg --config extensions.convert= --config lfs.threshold=1000M \
841 > convert repo8 convert_normal 835 > convert repo8 convert_normal
842 initializing destination convert_normal repository 836 initializing destination convert_normal repository
843 scanning source... 837 scanning source...
844 sorting... 838 sorting...
845 converting... 839 converting...