author | Matt Mackall <mpm@selenic.com> |
Sun, 10 Jul 2005 16:13:39 -0800 | |
changeset 670 | 4efb9b109292 |
parent 669 | 8aa2a282eda4 |
child 671 | efa4a7e2f322 |
mercurial/hg.py | file | annotate | diff | comparison | revisions |
--- 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))