changeset 670:4efb9b109292

Move .hg into ignore()
author Matt Mackall <mpm@selenic.com>
date Sun, 10 Jul 2005 16:13:39 -0800
parents 8aa2a282eda4
children efa4a7e2f322
files mercurial/hg.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hg.py	Sun Jul 10 16:03:20 2005 -0800
+++ b/mercurial/hg.py	Sun Jul 10 16:13:39 2005 -0800
@@ -397,10 +397,8 @@
                 if os.path.isdir(f):
                     for dir, subdirs, fl in os.walk(f):
                         d = dir[len(self.root) + 1:]
-                        if ".hg" in subdirs:
-                            subdirs.remove(".hg")
                         for sd in subdirs:
-                            if ignore(os.path.join(d, sd + '/')):
+                            if sd == ".hg" or ignore(os.path.join(d, sd +'/')):
                                 subdirs.remove(sd)
                         for fn in fl:
                             fn = util.pconvert(os.path.join(d, fn))