Show More
@@ -137,8 +137,11 b' def reposetup(ui, repo):' | |||||
137 | # Create a copy of match that matches standins instead |
|
137 | # Create a copy of match that matches standins instead | |
138 | # of largefiles. |
|
138 | # of largefiles. | |
139 | def tostandin(file): |
|
139 | def tostandin(file): | |
140 | if working and lfutil.standin(file) in repo.dirstate: |
|
140 | if working: | |
141 |
|
|
141 | sf = lfutil.standin(file) | |
|
142 | dirstate = repo.dirstate | |||
|
143 | if sf in dirstate or sf in dirstate.dirs(): | |||
|
144 | return sf | |||
142 | return file |
|
145 | return file | |
143 |
|
146 | |||
144 | # Create a function that we can use to override what is |
|
147 | # Create a function that we can use to override what is | |
@@ -167,8 +170,12 b' def reposetup(ui, repo):' | |||||
167 | orig_ignore = lfdirstate._ignore |
|
170 | orig_ignore = lfdirstate._ignore | |
168 | lfdirstate._ignore = _ignoreoverride |
|
171 | lfdirstate._ignore = _ignoreoverride | |
169 |
|
172 | |||
170 | match._files = [f for f in match._files if f in |
|
173 | def sfindirstate(f): | |
171 |
|
|
174 | sf = lfutil.standin(f) | |
|
175 | dirstate = repo.dirstate | |||
|
176 | return sf in dirstate or sf in dirstate.dirs() | |||
|
177 | match._files = [f for f in match._files | |||
|
178 | if sfindirstate(f)] | |||
172 | # Don't waste time getting the ignored and unknown |
|
179 | # Don't waste time getting the ignored and unknown | |
173 | # files again; we already have them |
|
180 | # files again; we already have them | |
174 | s = lfdirstate.status(match, [], False, |
|
181 | s = lfdirstate.status(match, [], False, |
@@ -251,6 +251,13 b' Corner cases for adding largefiles.' | |||||
251 | A sub2/large6 |
|
251 | A sub2/large6 | |
252 | A sub2/large7 |
|
252 | A sub2/large7 | |
253 |
|
253 | |||
|
254 | Test "hg status" with combination of 'file pattern' and 'directory | |||
|
255 | pattern' for largefiles: | |||
|
256 | ||||
|
257 | $ hg status sub2/large6 sub2 | |||
|
258 | A sub2/large6 | |||
|
259 | A sub2/large7 | |||
|
260 | ||||
254 | Config settings (pattern **.dat, minsize 2 MB) are respected. |
|
261 | Config settings (pattern **.dat, minsize 2 MB) are respected. | |
255 |
|
262 | |||
256 | $ echo testdata > test.dat |
|
263 | $ echo testdata > test.dat |
General Comments 0
You need to be logged in to leave comments.
Login now