comparison tests/test-lfs.t @ 35799:b91bca85ba73 stable

lfs: don't automatically exclude '.hg*' files from external tracking The only reasons I did this in the first place was because tracking externally seems like it would always be a mistake, and the eol extension does the same thing. Yuya and Jun thought it might be better to not do this[1], so I'll defer to them on this. If a problem with say, .hgtags or .hgeol does arise, it can be added back without breaking existing repos. [1] https://www.mercurial-scm.org/pipermail/mercurial-devel/2018-January/110371.html
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 23 Jan 2018 21:29:45 -0500
parents 97bdbcb43ebf
children d5288b966e2f
comparison
equal deleted inserted replaced
35798:97bdbcb43ebf 35799:b91bca85ba73
16 $ cd client 16 $ cd client
17 17
18 # Commit small file 18 # Commit small file
19 $ echo s > smallfile 19 $ echo s > smallfile
20 $ echo '**.py = LF' > .hgeol 20 $ echo '**.py = LF' > .hgeol
21 $ hg --config lfs.track='size(">1000B") | "path:.hgeol"' commit -Aqm "add small file" 21 $ hg --config lfs.track='size(">1000B")' commit -Aqm "add small file"
22 $ hg debugdata .hgeol 0
23 **.py = LF
24 22
25 # Commit large file 23 # Commit large file
26 $ echo $LONG > largefile 24 $ echo $LONG > largefile
27 $ grep lfs .hg/requires 25 $ grep lfs .hg/requires
28 [1] 26 [1]
974 972
975 '**' works out to mean all files. 973 '**' works out to mean all files.
976 974
977 $ cat > .hglfs << EOF 975 $ cat > .hglfs << EOF
978 > [track] 976 > [track]
977 > path:.hglfs = none()
979 > **.test = size(">5B") 978 > **.test = size(">5B")
980 > **.exclude = none() 979 > **.exclude = none()
981 > ** = size(">10B") 980 > ** = size(">10B")
982 > EOF 981 > EOF
983 982