mercurial/dirstate.py
changeset 4254 a7cae4e22749
parent 4188 dd0d9bd91e0a
child 4256 fe0fe0b4d73b
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -423,7 +423,7 @@ class dirstate(object):
                     # 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