equal
deleted
inserted
replaced
198 |
198 |
199 def prunetemporaryincludes(repo): |
199 def prunetemporaryincludes(repo): |
200 if not enabled or not repo.vfs.exists('tempsparse'): |
200 if not enabled or not repo.vfs.exists('tempsparse'): |
201 return |
201 return |
202 |
202 |
203 origstatus = repo.status() |
203 s = repo.status() |
204 modified, added, removed, deleted, a, b, c = origstatus |
204 if s.modified or s.added or s.removed or s.deleted: |
205 if modified or added or removed or deleted: |
|
206 # Still have pending changes. Don't bother trying to prune. |
205 # Still have pending changes. Don't bother trying to prune. |
207 return |
206 return |
208 |
207 |
209 sparsematch = matcher(repo, includetemp=False) |
208 sparsematch = matcher(repo, includetemp=False) |
210 dirstate = repo.dirstate |
209 dirstate = repo.dirstate |
387 matcher. |
386 matcher. |
388 |
387 |
389 Will abort if a file with pending changes is being excluded or included |
388 Will abort if a file with pending changes is being excluded or included |
390 unless ``force`` is True. |
389 unless ``force`` is True. |
391 """ |
390 """ |
392 modified, added, removed, deleted, unknown, ignored, clean = origstatus |
|
393 |
|
394 # Verify there are no pending changes |
391 # Verify there are no pending changes |
395 pending = set() |
392 pending = set() |
396 pending.update(modified) |
393 pending.update(origstatus.modified) |
397 pending.update(added) |
394 pending.update(origstatus.added) |
398 pending.update(removed) |
395 pending.update(origstatus.removed) |
399 sparsematch = matcher(repo) |
396 sparsematch = matcher(repo) |
400 abort = False |
397 abort = False |
401 |
398 |
402 for f in pending: |
399 for f in pending: |
403 if not sparsematch(f): |
400 if not sparsematch(f): |