mercurial/dirstate.py
changeset 18815 a18919de61e5
parent 18814 1413ba410244
child 18869 e8b4b139a545
--- a/mercurial/dirstate.py	Fri Mar 22 17:03:00 2013 -0700
+++ b/mercurial/dirstate.py	Fri Mar 22 17:03:49 2013 -0700
@@ -705,7 +705,12 @@
 
         # step 3: report unseen items in the dmap hash
         if not skipstep3 and not exact:
-            visit = sorted([f for f in dmap if f not in results and matchfn(f)])
+            if not results and matchalways:
+                visit = dmap.keys()
+            else:
+                visit = [f for f in dmap if f not in results and matchfn(f)]
+            visit.sort()
+
             if unknown:
                 # unknown == True means we walked the full directory tree above.
                 # So if a file is not seen it was either a) not matching matchfn