##// 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 lfstrack = self.opener.options['lfstrack']
132 lfstrack = self.opener.options['lfstrack']
133
133
134 # Always exclude hg owned files
134 if lfstrack(self.filename, textlen):
135 if not self.filename.startswith('.hg') and lfstrack(self.filename, textlen):
136 flags |= revlog.REVIDX_EXTSTORED
135 flags |= revlog.REVIDX_EXTSTORED
137
136
138 return orig(self, text, transaction, link, p1, p2, cachedelta=cachedelta,
137 return orig(self, text, transaction, link, p1, p2, cachedelta=cachedelta,
@@ -18,9 +18,7 b''
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
@@ -976,6 +974,7 b' Bad .hglfs files will block the commit w'
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")
General Comments 0
You need to be logged in to leave comments. Login now