mercurial/context.py
changeset 23776 70bf92b87410
parent 23770 50f0096a7346
child 23777 a4951adebfb0
--- a/mercurial/context.py	Thu Oct 16 21:49:28 2014 -0700
+++ b/mercurial/context.py	Thu Jan 08 13:12:44 2015 -0800
@@ -1495,6 +1495,15 @@
             if fixup and listclean:
                 s.clean.extend(fixup)
 
+        if match.always():
+            # cache for performance
+            if s.unknown or s.ignored or s.clean:
+                # "_status" is cached with list*=False in the normal route
+                self._status = scmutil.status(s.modified, s.added, s.removed,
+                                              s.deleted, [], [], [])
+            else:
+                self._status = s
+
         return s
 
     def _buildstatus(self, other, s, match, listignored, listclean,
@@ -1515,14 +1524,6 @@
             s = super(workingctx, self)._buildstatus(other, s, match,
                                                      listignored, listclean,
                                                      listunknown)
-        elif match.always():
-            # cache for performance
-            if s.unknown or s.ignored or s.clean:
-                # "_status" is cached with list*=False in the normal route
-                self._status = scmutil.status(s.modified, s.added, s.removed,
-                                              s.deleted, [], [], [])
-            else:
-                self._status = s
         return s
 
     def _matchstatus(self, other, match):