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