changeset 1396:8c3e2a254257

check if a file is ignored before complaining if it is an unsupported type
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 18 Oct 2005 00:45:27 -0700
parents c2eb204917f8
children 66fd3bc1cfcf
files mercurial/dirstate.py
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstate.py	Tue Oct 18 00:43:33 2005 -0700
+++ b/mercurial/dirstate.py	Tue Oct 18 00:45:27 2005 -0700
@@ -308,9 +308,8 @@
                         ds = os.path.join(nd, f +'/')
                         if statmatch(ds, st):
                             work.append(p)
-                    elif supported_type(np, st):
-                        if statmatch(np, st):
-                            yield util.pconvert(np)
+                    elif statmatch(np, st) and supported_type(np, st):
+                        yield util.pconvert(np)
 
 
         known = {'.hg': 1}
@@ -340,7 +339,7 @@
                     continue
                 found = False
                 self.blockignore = True
-                if supported_type(ff, st) and statmatch(ff, st):
+                if statmatch(ff, st) and supported_type(ff, st):
                     found = True
                 self.blockignore = False
                 if found: