changeset 2008:11ffa1267185

Don't ignore everything if all hgignore files are empty.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 26 Mar 2006 22:32:44 +0200
parents 2ffa36dc3423
children 182f500805db
files mercurial/dirstate.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstate.py	Sun Mar 26 07:28:52 2006 -0800
+++ b/mercurial/dirstate.py	Sun Mar 26 22:32:44 2006 +0200
@@ -100,10 +100,10 @@
             return False
         if not self.ignorefunc:
             ignore = self.hgignore()
-            if ignore:
+            allpats = []
+            [allpats.extend(patlist) for patlist in ignore.values()]
+            if allpats:
                 try:
-                    allpats = []
-                    [allpats.extend(patlist) for patlist in ignore.values()]
                     files, self.ignorefunc, anypats = (
                         util.matcher(self.root, inc=allpats, src='.hgignore'))
                 except util.Abort: