Fix performance of dirstate.changes with ignored directories.
authorBryan O'Sullivan <bos@serpentine.com>
Sat, 17 Sep 2005 00:23:19 -0700
changeset 1268 c631f26346ca
parent 1266 703783bc09c4
child 1269 5e9816decbb7
Fix performance of dirstate.changes with ignored directories.
mercurial/dirstate.py
--- a/mercurial/dirstate.py	Fri Sep 16 14:01:03 2005 -0700
+++ b/mercurial/dirstate.py	Sat Sep 17 00:23:19 2005 -0700
@@ -333,7 +333,8 @@
                     l.append(fn)
 
             if not s or stat.S_ISDIR(s.st_mode):
-                return self.ignore(fn) and False or match(fn)
+                if self.ignore(fn): return False
+                return match(fn)
 
             if not stat.S_ISREG(s.st_mode):
                 return False