Show More
@@ -188,17 +188,11 def reposetup(ui, repo): | |||
|
188 | 188 | match._files = [f for f in match._files |
|
189 | 189 | if sfindirstate(f)] |
|
190 | 190 | # Don't waste time getting the ignored and unknown |
|
191 |
# files |
|
|
191 | # files from lfdirstate | |
|
192 | 192 | s = lfdirstate.status(match, [], False, |
|
193 | 193 | listclean, False) |
|
194 | (unsure, modified, added, removed, missing, unknown, | |
|
195 | ignored, clean) = s | |
|
196 | # Replace the list of ignored and unknown files with | |
|
197 | # the previously calculated lists, and strip out the | |
|
198 | # largefiles | |
|
199 | lfiles = set(lfdirstate._map) | |
|
200 | ignored = set(result[5]).difference(lfiles) | |
|
201 | unknown = set(result[4]).difference(lfiles) | |
|
194 | (unsure, modified, added, removed, missing, _unknown, | |
|
195 | _ignored, clean) = s | |
|
202 | 196 | if parentworking: |
|
203 | 197 | for lfile in unsure: |
|
204 | 198 | standin = lfutil.standin(lfile) |
@@ -229,6 +223,7 def reposetup(ui, repo): | |||
|
229 | 223 | # Replace the original ignore function |
|
230 | 224 | lfdirstate._ignore = origignore |
|
231 | 225 | |
|
226 | # Standins no longer found in lfdirstate has been removed | |
|
232 | 227 | for standin in ctx1.manifest(): |
|
233 | 228 | if not lfutil.isstandin(standin): |
|
234 | 229 | continue |
@@ -243,20 +238,17 def reposetup(ui, repo): | |||
|
243 | 238 | |
|
244 | 239 | # Largefiles are not really removed when they're |
|
245 | 240 | # still in the normal dirstate. Likewise, normal |
|
246 |
# files are not really removed if |
|
|
241 | # files are not really removed if they are still in | |
|
247 | 242 | # lfdirstate. This happens in merges where files |
|
248 | 243 | # change type. |
|
249 | 244 | removed = [f for f in removed if f not in self.dirstate] |
|
250 | 245 | result[2] = [f for f in result[2] if f not in lfdirstate] |
|
251 | 246 | |
|
247 | lfiles = set(lfdirstate._map) | |
|
252 | 248 | # Unknown files |
|
253 |
|
|
|
254 | result[4] = [f for f in unknown | |
|
255 | if (self.dirstate[f] == '?' and | |
|
256 | not lfutil.isstandin(f))] | |
|
257 | # Ignored files were calculated earlier by the dirstate, | |
|
258 | # and we already stripped out the largefiles from the list | |
|
259 | result[5] = ignored | |
|
249 | result[4] = set(result[4]).difference(lfiles) | |
|
250 | # Ignored files | |
|
251 | result[5] = set(result[5]).difference(lfiles) | |
|
260 | 252 | # combine normal files and largefiles |
|
261 | 253 | normals = [[fn for fn in filelist |
|
262 | 254 | if not lfutil.isstandin(fn)] |
General Comments 0
You need to be logged in to leave comments.
Login now