##// END OF EJS Templates
sparse: access status fields by name instead of deconstructing it...
Martin von Zweigbergk -
r33356:ccb3e539 default
parent child Browse files
Show More
@@ -200,9 +200,8 b' 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
@@ -389,13 +388,11 b' def refreshwdir(repo, origstatus, origsp'
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
General Comments 0
You need to be logged in to leave comments. Login now