##// END OF EJS Templates
lfs: don't automatically exclude '.hg*' files from external tracking...
Matt Harbison -
r35817:b91bca85 stable
parent child Browse files
Show More
@@ -131,8 +131,7 b' def filelogaddrevision(orig, self, text,'
131 131
132 132 lfstrack = self.opener.options['lfstrack']
133 133
134 # Always exclude hg owned files
135 if not self.filename.startswith('.hg') and lfstrack(self.filename, textlen):
134 if lfstrack(self.filename, textlen):
136 135 flags |= revlog.REVIDX_EXTSTORED
137 136
138 137 return orig(self, text, transaction, link, p1, p2, cachedelta=cachedelta,
@@ -18,9 +18,7 b''
18 18 # Commit small file
19 19 $ echo s > smallfile
20 20 $ echo '**.py = LF' > .hgeol
21 $ hg --config lfs.track='size(">1000B") | "path:.hgeol"' commit -Aqm "add small file"
22 $ hg debugdata .hgeol 0
23 **.py = LF
21 $ hg --config lfs.track='size(">1000B")' commit -Aqm "add small file"
24 22
25 23 # Commit large file
26 24 $ echo $LONG > largefile
@@ -976,6 +974,7 b' Bad .hglfs files will block the commit w'
976 974
977 975 $ cat > .hglfs << EOF
978 976 > [track]
977 > path:.hglfs = none()
979 978 > **.test = size(">5B")
980 979 > **.exclude = none()
981 980 > ** = size(">10B")
General Comments 0
You need to be logged in to leave comments. Login now