##// END OF EJS Templates
context.status: avoid de- and reconstructing status tuple...
Martin von Zweigbergk -
r23303:3f269bd4 default
parent child Browse files
Show More
@@ -1408,19 +1408,17 b' class workingctx(committablectx):'
1408 subrepos = sorted(self.substate)
1408 subrepos = sorted(self.substate)
1409 cmp, s = self._repo.dirstate.status(match, subrepos, listignored,
1409 cmp, s = self._repo.dirstate.status(match, subrepos, listignored,
1410 listclean, listunknown)
1410 listclean, listunknown)
1411 modified, added, removed, deleted, unknown, ignored, clean = s
1412
1411
1413 # check for any possibly clean files
1412 # check for any possibly clean files
1414 if cmp:
1413 if cmp:
1415 modified2, fixup = self._checklookup(cmp)
1414 modified2, fixup = self._checklookup(cmp)
1416 modified += modified2
1415 s.modified.extend(modified2)
1417
1416
1418 # update dirstate for files that are actually clean
1417 # update dirstate for files that are actually clean
1419 if fixup and listclean:
1418 if fixup and listclean:
1420 clean += fixup
1419 s.clean.extend(fixup)
1421
1420
1422 return scmutil.status(modified, added, removed, deleted, unknown,
1421 return s
1423 ignored, clean)
1424
1422
1425 def _buildstatus(self, other, s, match, listignored, listclean,
1423 def _buildstatus(self, other, s, match, listignored, listclean,
1426 listunknown):
1424 listunknown):
General Comments 0
You need to be logged in to leave comments. Login now