##// END OF EJS Templates
lfs: always exclude '.hg*' text files...
Matt Harbison -
r35666:588d02d9 default
parent child Browse files
Show More
@@ -130,7 +130,9 b' def filelogaddrevision(orig, self, text,'
130 130 textlen -= offset
131 131
132 132 lfstrack = self.opener.options['lfstrack']
133 if lfstrack(self.filename, textlen):
133
134 # Always exclude hg owned files
135 if not self.filename.startswith('.hg') and lfstrack(self.filename, textlen):
134 136 flags |= revlog.REVIDX_EXTSTORED
135 137
136 138 return orig(self, text, transaction, link, p1, p2, cachedelta=cachedelta,
@@ -17,7 +17,10 b''
17 17
18 18 # Commit small file
19 19 $ echo s > smallfile
20 $ hg commit -Aqm "add small file"
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 24
22 25 # Commit large file
23 26 $ echo $LONG > largefile
@@ -70,7 +73,7 b' lfs requirement'
70 73 adding changesets
71 74 adding manifests
72 75 adding file changes
73 added 2 changesets with 2 changes to 2 files
76 added 2 changesets with 3 changes to 3 files
74 77 calling hook pretxnchangegroup.lfs: hgext.lfs.checkrequireslfs
75 78 $ grep lfs $TESTTMP/server/.hg/requires
76 79 lfs
@@ -104,8 +107,8 b' enabled adds the lfs requirement'
104 107 adding changesets
105 108 adding manifests
106 109 adding file changes
107 added 2 changesets with 2 changes to 2 files
108 new changesets b29ba743f89d:00c137947d30
110 added 2 changesets with 3 changes to 3 files
111 new changesets 0ead593177f7:b88141481348
109 112 (run 'hg update' to get a working copy)
110 113 $ grep lfs .hg/requires $TESTTMP/server/.hg/requires
111 114 .hg/requires:lfs
@@ -117,7 +120,7 b' enabled adds the lfs requirement'
117 120
118 121 # Update to the last revision containing the large file
119 122 $ hg update
120 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
123 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
121 124
122 125 # Check the blobstore has been populated on update
123 126 $ find .hg/store/lfs/objects | sort
General Comments 0
You need to be logged in to leave comments. Login now