# HG changeset patch # User Bryan O'Sullivan # Date 2005-09-17 07:23:19 # Node ID c631f26346ca1a6beabfbd0730cc285108e2d720 # Parent 703783bc09c463ed946354e29e290b99aa91bb98 Fix performance of dirstate.changes with ignored directories. diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -333,7 +333,8 @@ class dirstate: 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