equal
deleted
inserted
replaced
344 repo.ui.status(_(b'not deleting ignored file %s\n') % uipathfn(f)) |
344 repo.ui.status(_(b'not deleting ignored file %s\n') % uipathfn(f)) |
345 for f in clean + trackeddirty: |
345 for f in clean + trackeddirty: |
346 ds.drop(f) |
346 ds.drop(f) |
347 |
347 |
348 pctx = repo[b'.'] |
348 pctx = repo[b'.'] |
|
349 |
|
350 # only update added files that are in the sparse checkout |
|
351 addedmatch = matchmod.intersectmatchers(addedmatch, sparse.matcher(repo)) |
349 newfiles = [f for f in pctx.manifest().walk(addedmatch) if f not in ds] |
352 newfiles = [f for f in pctx.manifest().walk(addedmatch) if f not in ds] |
350 for f in newfiles: |
353 for f in newfiles: |
351 ds.normallookup(f) |
354 ds.normallookup(f) |
352 _writeaddedfiles(repo, pctx, newfiles) |
355 _writeaddedfiles(repo, pctx, newfiles) |
353 repo._updatingnarrowspec = False |
356 repo._updatingnarrowspec = False |