changeset 4254:a7cae4e22749

Pass normalized directory names to the ignore function This fixes a bad performance regression caused by dd0d9bd91e0a.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 20 Mar 2007 22:09:53 -0300
parents 9e3e975258a9
children ef1f1a4b2efb
files mercurial/dirstate.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstate.py	Sun Mar 18 22:49:05 2007 +0200
+++ b/mercurial/dirstate.py	Tue Mar 20 22:09:53 2007 -0300
@@ -423,7 +423,7 @@
                     # don't trip over symlinks
                     st = os.lstat(p)
                     if stat.S_ISDIR(st.st_mode):
-                        if not ignore(p):
+                        if not ignore(np):
                             work.append(p)
                         if imatch(np) and np in dc:
                             yield 'm', np, st