changeset 670 | 4efb9b109292 |
parent 669 | 8aa2a282eda4 |
child 674 | 6513ba7d858a |
--- 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))