Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/hg.py @ 892:f481c9b6786e
Fix bug involving "hg debugwalk -Ipattern" from repository root.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Sat, 13 Aug 2005 15:09:37 -0800 |
parents | 509de8ab6f31 |
children | 62ec665759f2 |
comparison
equal
deleted
inserted
replaced
891:a9b843b114f9 | 892:f481c9b6786e |
---|---|
500 continue | 500 continue |
501 if stat.S_ISDIR(st.st_mode): | 501 if stat.S_ISDIR(st.st_mode): |
502 for dir, subdirs, fl in os.walk(f): | 502 for dir, subdirs, fl in os.walk(f): |
503 d = dir[len(self.root) + 1:] | 503 d = dir[len(self.root) + 1:] |
504 nd = util.normpath(d) | 504 nd = util.normpath(d) |
505 if nd == '.': nd = '' | |
505 if seen(nd): | 506 if seen(nd): |
506 subdirs[:] = [] | 507 subdirs[:] = [] |
507 continue | 508 continue |
508 for sd in subdirs: | 509 for sd in subdirs: |
509 ds = os.path.join(nd, sd +'/') | 510 ds = os.path.join(nd, sd +'/') |