##// END OF EJS Templates
status: cache dirstate status in _dirstatestatus()...
Martin von Zweigbergk -
r23776:70bf92b8 default
parent child Browse files
Show More
@@ -1495,6 +1495,15 b' class workingctx(committablectx):'
1495 if fixup and listclean:
1495 if fixup and listclean:
1496 s.clean.extend(fixup)
1496 s.clean.extend(fixup)
1497
1497
1498 if match.always():
1499 # cache for performance
1500 if s.unknown or s.ignored or s.clean:
1501 # "_status" is cached with list*=False in the normal route
1502 self._status = scmutil.status(s.modified, s.added, s.removed,
1503 s.deleted, [], [], [])
1504 else:
1505 self._status = s
1506
1498 return s
1507 return s
1499
1508
1500 def _buildstatus(self, other, s, match, listignored, listclean,
1509 def _buildstatus(self, other, s, match, listignored, listclean,
@@ -1515,14 +1524,6 b' class workingctx(committablectx):'
1515 s = super(workingctx, self)._buildstatus(other, s, match,
1524 s = super(workingctx, self)._buildstatus(other, s, match,
1516 listignored, listclean,
1525 listignored, listclean,
1517 listunknown)
1526 listunknown)
1518 elif match.always():
1519 # cache for performance
1520 if s.unknown or s.ignored or s.clean:
1521 # "_status" is cached with list*=False in the normal route
1522 self._status = scmutil.status(s.modified, s.added, s.removed,
1523 s.deleted, [], [], [])
1524 else:
1525 self._status = s
1526 return s
1527 return s
1527
1528
1528 def _matchstatus(self, other, match):
1529 def _matchstatus(self, other, match):
General Comments 0
You need to be logged in to leave comments. Login now