Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/dirstate.py @ 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 | dd0d9bd91e0a |
children | fe0fe0b4d73b |
comparison
equal
deleted
inserted
replaced
4253:9e3e975258a9 | 4254:a7cae4e22749 |
---|---|
421 continue | 421 continue |
422 p = os.path.join(top, f) | 422 p = os.path.join(top, f) |
423 # don't trip over symlinks | 423 # don't trip over symlinks |
424 st = os.lstat(p) | 424 st = os.lstat(p) |
425 if stat.S_ISDIR(st.st_mode): | 425 if stat.S_ISDIR(st.st_mode): |
426 if not ignore(p): | 426 if not ignore(np): |
427 work.append(p) | 427 work.append(p) |
428 if imatch(np) and np in dc: | 428 if imatch(np) and np in dc: |
429 yield 'm', np, st | 429 yield 'm', np, st |
430 elif imatch(np): | 430 elif imatch(np): |
431 if self.supported_type(np, st): | 431 if self.supported_type(np, st): |